Package de.elrebo

Class XmlDocumentHelper

java.lang.Object
de.elrebo.XmlDocumentHelper

public class XmlDocumentHelper extends Object
Class XmlDocumentHelper simplifies Access to XML documents from Java programs. It prepares any XML document as XdmNode.

Copyright 2025 Christoph Oberle

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

  • Constructor Details

    • XmlDocumentHelper

      public XmlDocumentHelper(net.sf.saxon.s9api.Processor processor, String filePath) throws net.sf.saxon.s9api.SaxonApiException
      Constructor from filePath
      Parameters:
      processor - the instance of the Saxon processor
      filePath - the filename incl. path to the XML document
      Throws:
      net.sf.saxon.s9api.SaxonApiException - if the file can not be prepared as an XdmNode
  • Method Details

    • asXdmNode

      public net.sf.saxon.s9api.XdmNode asXdmNode()
      return the XML document as an XdmNode
      Returns:
      the XdmNode of the XML document