public Element asXMLElement(Document document) { return asXMLElement(document, null); }
public Element asXMLElement(Document document) { return asXMLElement(document, null); }
protected Element asXMLElement(Document document, Element FileAnnotation_element) { // Creating XML block for FileAnnotation if (FileAnnotation_element == null) { FileAnnotation_element = document.createElementNS(NAMESPACE, "FileAnnotation"); } // Ensure any base annotations add their Elements first FileAnnotation_element = super.asXMLElement(document, FileAnnotation_element); if (binaryFile != null) { // Element property BinaryFile which is complex (has // sub-elements) FileAnnotation_element.appendChild(binaryFile.asXMLElement(document)); } if (structuredAnnotations != null) { // *** IGNORING *** Skipped back reference StructuredAnnotations_BackReference } return FileAnnotation_element; } }
public Element asXMLElement(Document document, Element FileAnnotation_element) { // Creating XML block for FileAnnotation if (FileAnnotation_element == null) { FileAnnotation_element = document.createElementNS(NAMESPACE, "FileAnnotation"); } // Ensure any base annotations add their Elements first super.asXMLElement(document, FileAnnotation_element); if (binaryFile != null) { // Element property BinaryFile which is complex (has // sub-elements) Element child = document.createElementNS(NAMESPACE, "BinaryFile"); binaryFile.asXMLElement(document, child); FileAnnotation_element.appendChild(child); } if (structuredAnnotations != null) { // *** IGNORING *** Skipped back reference StructuredAnnotations_BackReference } return FileAnnotation_element; } }