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
1
vote
1 answer

JAXP XpathFactory Object model

What is the OBJECT MODEL in XPathFactory ? What is important for? Does it affect the application performance? The spec and the javadoc claims that the default object model is the following: DEFAULT_OBJECT_MODEL_URI =…
landal79
  • 1,520
  • 1
  • 11
  • 26
1
vote
0 answers

Where is XSLProcessorContext in the JAXP

I would like to get rid of xalan.jar (version 2.7.0) dependency in one of our old projects and use xalan which is included into JRE 1.7.0_51. However there is an extension java class in that project which imports…
Dime
  • 2,041
  • 3
  • 23
  • 29
1
vote
1 answer

Xerces (JAXP) tries to access internet resources

While validating an XML document using Xerces, it tries to access internet resources in w3c.org. My application that needs to work offline/behind a firewall throws an exception because of that. Is there a workaround? ps. This link provides some…
yannisf
  • 6,016
  • 9
  • 39
  • 61
1
vote
2 answers

DOM Parsing Clarification

I am going through JAXP DOM trail where there is a DOM Mixed Content model as shown below This is an important idea. It's been explained as below Note - The DOM Node API defines nodeValue(), nodeType(), and…
Keerthivasan
  • 12,760
  • 2
  • 32
  • 53
1
vote
4 answers

Converting a raw file (binary data ) into XML file

I'm working on a project under which i have to take a raw file from the server and convert it into XML file. Is there any tool available in java which can help me to accomplish this task like JAXP can be used to parse the XML document ?
Mahesh Gupta
  • 925
  • 2
  • 10
  • 25
1
vote
1 answer

JAXP with XSD import ArrayIndexOutOfBoundsException

I'm facing an issue with JDK (both 1.6 and 1.7) XSLT transformations. The thing is that I want to process simple WSDL that is using xsd:import for its XSD (that lies in same location) with my XSLT transformation. public static void main(String[]…
zdenda.online
  • 2,451
  • 3
  • 23
  • 45
1
vote
1 answer

Can I create a Groovy Node without escaping attribute values?

I'm writing a Gradle build script that is to build an Ivy module descriptor. I need a Node like I would like to do this: node.dependencies[0].appendNode("dependency", [ // [...] …
Emil Lundberg
  • 7,268
  • 6
  • 37
  • 53
1
vote
2 answers

Java servlets: xml validation against xsd

I have servlet which uses utility packaged in .jar archive: @Override public void init() throws ServletException { ... try (InputStream stream = getClass().getResourceAsStream("/fileToParse.xml")) { App.check(stream); } catch…
chepiov
  • 152
  • 1
  • 3
  • 10
1
vote
4 answers

Java SAX Searching an XML file for Data

I have .xml files inside a package in my Java project that contains data in the following format... I currently have overrided…
Rudi Kershaw
  • 12,332
  • 7
  • 52
  • 77
1
vote
2 answers

cvc-elt.1: Cannot find the declaration of element 'countries'

cvc-elt.1: Cannot find the declaration of element 'countries' I am new learner of xml schema validation and found above error with fileSchema.xsd: > xmlns:xs="http://www.w3.org/2001/XMLSchema" > …
nwzhaider
  • 359
  • 1
  • 3
  • 16
1
vote
2 answers

What is the use of static fields PI_ENABLE_OUTPUT_ESCAPING & PI_DISABLE_OUTPUT_ESCAPING and how can we use them?

I am new to jaxp and has no idea of using the above static fields and what they mean ? Need its explanation along with examples. Thanks in advance
Prateek
  • 12,014
  • 12
  • 60
  • 81
1
vote
1 answer

Parsing XML response of SOAP call in Weblogic

We are in the process of migrating functionality from a Weblogic Server 8,1 sp5 with java 1.4 to 10.3.6 with java 1.7. The case that is described below is working properly in the old server, however we are facing an issue when transferring the…
georgeM
  • 25
  • 8
1
vote
1 answer

Is there any way to pass a DOM Object via an Intent and Parcelable?

Is there any way to pass a JAXP Node or Document via an Intent and Parcelable? JAXP doesn't implement Parcelable, so the answer is probably --no. Is there any DOM library that implements Parcelable? Can someone provide a working example of…
yetimoner
  • 787
  • 2
  • 9
  • 19
1
vote
1 answer

BaseX: Javascript function not working in XSLT

I create an XSLT with Altova, now I want to use it with Basex and call the transformation from java. In Altova I don't have any problem, but under Basex I have "[FODC0002] Impossible to compile the stylesheet". A part of the XSLT is: …
alhandra
  • 21
  • 3
1
vote
3 answers

Parsing XML tags nested within other XML values

I am stuck developing a specific XML parser which parses huge chunk of XML . My problem is i'm confused how to parse XML tags nested within other XML values. My input file looks something like this.
Calculate the values from…
Napster
  • 157
  • 3
  • 17