Threaded View

  1. #1
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    46
    Vote Rating
    1
    fshort is on a distinguished road

      0  

    Default xml namespaces with Ext.DomQuery

    xml namespaces with Ext.DomQuery


    Hi,
    I have an xml document which contains element names consisting of namespaces, i.e.:

    <cam:Alertcode>3000</cam:AlertCode>

    I'd like to use the DomQuery class to select this node from the document but it throws an error:

    Code:
     Ext.DomQuery.pseudos[name] is not a function.
    The command I'm using to do the select is

    Code:
    Ext.DomQuery.selectNode("cam:AlertCode", doc.firstChild);
    Is there a way to use DomQuery to select elements who's name contains a namespace reference?
    Last edited by mystix; 29 Nov 2007 at 6:42 PM. Reason: moved to 1.x Help from 1.x Bugs