Creating the XML Parser Object in Mozilla

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • saraaku

    Creating the XML Parser Object in Mozilla

    Hello,

    I tried creating the xml parser object for mozilla, firefox but have
    had a hard time doing this. When I did this initially, it worked.
    But, when I tried it again, it did not. Does spaces in the formula
    affect it?

    Can someone please provide me the correct formula to create this
    object and how I can check if spaces are the reason why it does not
    work?

    Thanks
  • Robert Mark Bram

    #2
    Re: Creating the XML Parser Object in Mozilla

    Can someone please provide me the correct formula to create this
    object and how I can check if spaces are the reason why it does not
    work?
    Is this what you are referring to?

    var parser = new DOMParser();
    var xml = parser.parseFro mString("<myNod e>some valid xml</
    myNode>","text/xml");

    Rob
    :)

    Comment

    Working...