dcsimg
Urgent !! Is is possible to create a xml document using XPath??
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Andrew_Sun
Posted On:   Thursday, August 22, 2002 05:43 AM

I know basicly you can represent every tag in the XML using XPath. But can you recreate this document using the same set of XPath(s)??

Re: Urgent !! Is is possible to create a xml document using XPath??

Posted By:   irfan_mansha  
Posted On:   Tuesday, August 27, 2002 09:20 PM

I think u have some kind of misunderstanding about XPath. It can only be used for getting XML information. It can not be used for XML manipulation. This facility is available in XQuery which is forthcoming specification by W3c. So try to read it. Currently there r two following soultions available:



1. XSLT.


2. DOM.




i think it would be helpful for you.



take care,


irfan mansha.

Re: Urgent !! Is is possible to create a xml document using XPath??

Posted By:   Matt_Large  
Posted On:   Friday, August 23, 2002 08:02 AM

Not really, the problem comes when you need to distinguish between two nodes that essentially have exactly the same information contained in them. So really it depends on how you build the XPath in the first place.

I've done something like this in XSLT and used the generate-id function to attatch identifying ids. However, really you are just moving towards the XML serialisation problems. We were trying to encode into name/value pairs at the time.
About | Sitemap | Contact