Skip to content
Advertisement

Tag: namespaces

Reading XML with namespace using Apache Beam XmlIO

I am trying to read an XML file into an Apache Beam pipeline. Some elements have namespaces and the namespace declaration is declared at the root node. I am able to parse the xml outside of Apache Beam using the standard JAXB parser. However, when I use XmlIO.read() function with beam I get the following exception: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix

Advertisement