Liquid XML Data Binder 2020
Liquid XML Data Binder (C++, Java, VB6) / Reference / Java / Reference / com.liquid_technologies.ltxmllib18 / DOM / XmlDocument / Java getDocumentElement - XmlDocument
In This Topic
    Java getDocumentElement - XmlDocument
    In This Topic
    XmlElement getDocumentElement()
      Property Description  
        Property Name getDocumentElement  
        Description Gets the root element from the XML document. The document must first have been successfully opened using the parse method.  
        Remarks If the following XML was parsed, then getDocumentElement would return an XmlElement class represented the element 'cust:Customer'.

    <?xml version="1.0" encoding="UTF-8"?>
    <cust:Customer xmlns:cust="http://sample"
                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                            xsi:schemaLocation="http://sample ElmNamespaceQualification.xsd"
                            clubCardMember="true"
                            cust:customerID="1234">
        <FirstName>Ray</FirstName>
        <MiddleInitial>G</MiddleInitial>
        <cust:LastName>Bayliss</cust:LastName>
    </cust:Customer>