Liquid XML Data Binder 2020
Liquid XML Data Binder (C++, Java, VB6) / Reference / Java / Reference / com.liquid_technologies.ltxmllib18 / DOM / XmlDocument / Java parse - XmlDocument
In This Topic
    Java parse - XmlDocument
    In This Topic
    public void parse(org.w3c.dom.Element documentElm);
      Property Description  
        Property Name parse  
        Description Populates the XmlDocument from an standard XML node (as used by xerces, and other DOM parsers)  
        Remarks

    This method allows you to re-use XML documents that have already been parsed using another parser (e.g. xerces).

    org.w3c.dom.Element docElm = ...; // parsed previously in users code.

    com.liquid_technologies.ltxmllib18.dom.XmlDocumentXerces ltXmlDoc = new com.liquid_technologies.ltxmllib18.dom.XmlDocument();

    ltXmlDoc.parse(docElm);

    GeneratedClass cls = new GeneratedClass();

    cls.FromXmlElement(ltXmlDoc.getDocumentElement();

    // cls is now loaded with data from docElm.