Questions tagged [jaxp]

The Java API for XML Processing (JAXP) enables applications to parse, transform, validate and query XML documents using an API that is independent of a particular XML processor implementation.

The Java API for XML Processing (JAXP) enables applications to parse, transform, validate and query XML documents using an API that is independent of a particular XML processor implementation.

JAXP provides a pluggability layer to enable vendors to provide their own implementations without introducing dependencies in application code. Using this software, application and tool developers can build fully-functional XML-enabled Java applications for e-commerce, application integration, and web publishing.

JAXP is a standard component in the Java platform. An implementation of the JAXP 1.3 is included in J2SE 5.0 and an implementation of JAXP 1.4 is in Java SE 6.0 and OpenJDK7. JAXP 1.4 is a maintenance release of JAXP 1.3 with support for the Streaming API for XML (StAX).

External links:

215 questions
0
votes
1 answer

Disable Indent in JAXP when transform XML

I am using JAXP to convert DOM tree to XML. I do not want any intends in my result XML. This is my code: root.normalize(); DOMSource domSource = new DOMSource(root); StreamResult result = new StreamResult(outputStream); …
TNN
  • 426
  • 2
  • 6
  • 15
0
votes
1 answer

SAXON - XPath, Resolving Variable with Node and Primitive value

I have a case of evaluation like : $asset eq 100 and $asset/name() eq 'p0:current_asset' which should return true(), variable $asset need to be resolved as primitive and node value in same evaluation, I'm using XPathVariableResolver interface to…
Fauzi Achmad
  • 173
  • 1
  • 2
  • 14
0
votes
1 answer

How to register Saxon/XSLT extension functions such that they accessible in BaseX/XQuery (JAXP APIs)

I have a few Saxon/XSLT extension functions that I created through the simple interface that I register like this: Processor proc = new Processor(false); proc.registerExtensionFunction(myExtensionFunctionInstance); Now I want to use that with…
Emmanuel Oga
  • 354
  • 2
  • 12
0
votes
1 answer

How I can use com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl on WebSphere instead com.ibm.xtq.xslt.jaxp.TransformerImpl?

I have java application on WebSphere 8.5.5. I use xslt transformer from jdk. When I used console version I could use jdk version of transformer. Now, I switched to WebSphere. When I create a TransformerImpl, it is created fromIbm. It has a lot of…
0
votes
0 answers

How to extend com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl and write own DocumentBuilderFactoryI for Weblogic 12C

To prevent XXE attack, I am trying to override default DocumentBuilderFactoryImpl for weblogic 12c and use my own parser. I am trying below code. import javax.xml.parsers.DocumentBuilder; import…
SubhenduGN
  • 21
  • 2
  • 14
0
votes
2 answers

Jaxp issue? Can't find org.apache.xerces.jaxp.DocumentBuilderFactoryImpl using gradle

I am having trouble getting a class to load in a gradle script. When I run this code: buildscript { repositories { mavenCentral() } dependencies { classpath( group:"xerces", name:'xercesImpl', version:'2.9.1') …
phil swenson
  • 8,564
  • 20
  • 74
  • 99
0
votes
1 answer

setOutputProperty(), setParameter() and setURIResolver() methods of javax.xml.transform.Transformer

What is the use of the methods setOutputProperty(), setParameter() and setURIResolver() of the class javax.xml.transform.Transformer? I had went through the official documentation and many other online resources, but I was unable to understand it…
0
votes
1 answer

How to use XML transformer with Java object as parameter?

I'm writing a Java application, where the goal is to do XML transformation to generate a PDF document. I'm using an XML file as input, which is first parsed to a java object. After parsing I want to use that object in the XML transformation, so I…
greggor
  • 33
  • 4
0
votes
1 answer

Classloading problem in multimodule maven application

I have multimodule maven application. Inside the main directory where parent pom resides I have some modules. I am in the process of adding another one on the same level as the other modules. The application is packages as EAR and deployed into…
Andrew
  • 47
  • 8
0
votes
0 answers

accessExternalSchema is not recognized

I am trying to generate Java classes using Maven from XSDs/WSDLs. I have declared all the XSDs in my POM file and using the XJC plugin. When I try to do a clean install, I see these two error messages show up. [DEBUG] [SchemaGen]: May 02, 2019…
hell_storm2004
  • 1,401
  • 2
  • 33
  • 66
0
votes
1 answer

Error "cvc-elt.1: Cannot find the declaration of element 'xs:schema'." in Eclipse

I have the following XML Schema: and this XML:
David
  • 1
  • 1
0
votes
1 answer

missing resource bundle exception in java using weblogic

I have a requirement that I need to convert xsd file to POJO files. While using tomcat I didnot face any issue but when I am using weblogic I am getting error Can't find resource for bundle java.util.PropertyResouceBundle,key…
Sunny Mittal
  • 1
  • 1
  • 6
0
votes
0 answers

"java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory

I work with Spring MVC, weblogic 10.3.6. I have a jsp. The taglib declarations are <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <%@ taglib…
Carlota
  • 1,239
  • 3
  • 29
  • 59
0
votes
1 answer

JAXP saxon-he : XMLfile StreamSource doesn't release file access after parsing error

I'm using JAXP specification API combined with Saxon-HE API, the main purpose was to develop an application which transform XML files using configurable XSLT stylesheets, able to override generated output documents.. I skip details because I created…
PacDroid
  • 541
  • 1
  • 7
  • 22
0
votes
1 answer

Xerces dependency and JRE

Due to some classpath issues, I'm removing the Maven dependency to Xerces from my application. As I understand it, that is no longer needed as it is in the JRE. However, when compiling a junit that uses org.apache.xml.serialize.OutputFormat and…
user994165
  • 9,146
  • 30
  • 98
  • 165