XML
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists XML

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old June 11th, 2008, 06:20 AM
Robert de Wilde
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Get all unique prefixes from a XML document

Hello,



I've created a XML document, but it isn't complete, because I'll still need
to add the namespace declarations on top when the document is ready.
Therefore I'd like to use XPath to get all prefixes, and based on that
prefixes, add the namespaces. It's not 100% correct to use fixed prefixes, I
know, but it'll solve my problem. I've been trying to do something with
namespace-uri() finding the unique ones, but it didn't work out. Can someone
help me creating the right query?



//*[ not( namespace-uri() = namespace-uri(preceding-sibling::node()) )
]



Thanks in advance,



Robert de Wilde

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists XML > Get all unique prefixes from a XML document


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT