Handling xml namespaces in jQuery -


i have parse xml stream contains range of namespaces this:

<zs:searchretrieveresponse xmlns="http://www.directoryofchoice.co.uk" xmlns:zs="http://www.loc.gov/zing/srw/" xmlns:diag="http://www.loc.gov/zing/srw/diagnostic/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.directoryofchoice.co.uk schema/content_node.xsd" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:lom="http://ltsc.ieee.org/xsd/lom"> <zs:version>1.1</zs:version> <zs:numberofrecords>1066</zs:numberofrecords> <zs:records>     <zs:record>         <zs:recordschema>info:srw/schema/1/dc-v1.1</zs:recordschema>         <zs:recordpacking>xml</zs:recordpacking>         <zs:recorddata>             <srw_dc:dc xmlns:srw_dc="info:srw/schema/1/dc-schema">                 <dc:title>mathematics subject leader development materials: summer 

obviously indicative chunk of code. key point have read number of methods (using dc\:title, using "[nodename=dc:title]" , variations on these, , none of them work at all. have demonstrated taking xml stream 1 above , changing ":" "-". parses fine. jquery (i'm using 1.5.1) really not able handle xml namespaces? seems amazing flaw given how common namespaces nowadays. don't want learn javascript toolkit, there 1 handle namespaces?

ian.

you have double-escape colon ( dc\\:title ) and/or check article (and comments) directions: http://www.xml.com/pub/a/2007/10/10/jquery-and-xml.html?page=2


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -