R
redcic
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 = 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 = 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édric
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 = 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 = 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édric