Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Building a XML file thanks to a XPath-like syntax

From: "redcic" <cedric.louyot@-----.--->
To: 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



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent