Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Building a XML file thanks to a XPath-like syntax Building a XML file thanks to a XPath-like syntaxTo: NULL Date: 3/2/2007 6:59:00 AM
Hi all,
I would like to build a xml file using Xerces. I know how to build a
single node at a time.
For example, with 'doc' belonging to the DocumentImpl class and with
'docRootNode' belonging to the ElementNSImpl class, I do:
myElement =3D doc.createElement('elementName')
docRootNode.appendChild(myElement)
However, what I would like to be able to do is to use a XPath-like
syntax to build my xml file. Something of the type:
myElement =3D doc.createElement('parentName/elementName')
where on can recognize a XPath syntax in 'parentName/elementName'.
Is there a way to do so ?
What class of Xerces allows me to do that ?
Thanks a lot for your help,
C=E9dric
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
