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

StAX NullPointerException at xmlns=""

Objective To get suggestion for the cause of this issue and solution/workaround. Problem NullPointerException when running almost the same program in Stackoverflow Split 1GB Xml file using Java to split the XML file having xmlns="" as in W3C…
mon
  • 18,789
  • 22
  • 112
  • 205
0
votes
2 answers

What layer stood behind JAXP plugging capabilities?

So lets asume that we want to make XSLT transformation and we want to use. TransformerFactory transFact = TransformerFactory.newInstance(); (1) So newInstance() create object from abstract class which is impossible in Java. SO what happends…
Xelian
  • 16,680
  • 25
  • 99
  • 152
0
votes
2 answers

adding attribute to an existing node

i need to add an attribute initial-page-number to a tag fo:sequence tha tag is .. ... become
robyp7
  • 481
  • 2
  • 7
  • 25
0
votes
2 answers

Querying an HTML page with XPath in Java

Can anyone advise me a library for Java that allows me to perform an XPath Query over an html page? I tried using JAXP but it keeps giving me a strange error that I cannot seem to fix (thread "main" java.io.IOException: Server returned HTTP…
Leonardo Marques
  • 3,721
  • 7
  • 36
  • 50
0
votes
3 answers

Jaxp xml parsing & validation without writing to file

I've a JMS messaging app thats reading and writing to MQ queues. The message data is string form and in xml format (minus the normal header markers like the xml version etc). I'm looking at the best ways to read in, write out and validate against an…
sapatos
  • 1,292
  • 3
  • 21
  • 44
0
votes
1 answer

Generate JAXP DOM document with element order based on schema

I'm dynamically generating a document that needs to be validated against a schema at runtime. The problem I'm running into is that the structure of the document is correct, but the sequence of elements at each level is not. Is there a way to tell…
0
votes
1 answer

jaxp_feature_not_supported exception on docx4j

I am trying to use docx4j on my project. (I'm quite a newbies on it.) I just try to run the sample code from this link. http://www.smartjava.org/content/create-complex-word-docx-documents-programatically-docx4j The input is .docx file and the output…
Doppellon
  • 1
  • 2
0
votes
1 answer

write page counter in pdf footer but pass to render start number (first page is not 1 and > 1)

i use an old fop lib version 0.20.5 I have an xsl:fo with Page number : this is in the footer I need to create a PDF with a initial number > 1 and for ex. 10 or 11 or some other…
robyp7
  • 481
  • 2
  • 7
  • 25
0
votes
1 answer

In XML what do you call this: //@Dohicky.0 and how to address it in Java

It's my first time parsing XML and I don't really know what I'm doing at the moment. Here's my XML:
JnBrymn
  • 24,245
  • 28
  • 105
  • 147
0
votes
2 answers

Does JAXP support XSLT 2.0

My ${java.home} is C:\Program Files\Java\jdk1.7.0_51. I extracted saxonHE9-6-0-6J.zip in C:\Program Files\Java\jdk1.7.0_51\jre\lib\ext and add saxonhe9.jar to my classpath variable. Then I created a jaxp.properties file under…
StellaMaris
  • 877
  • 2
  • 12
  • 29
0
votes
2 answers

JAXP and StAX - DOM Node is represented as Document

I want to read a potentially big XML file. For memory efficiency and ease of processing i want use a mixture of StAX and DOM as described here. My input looks as follows (it is OSM)
Hendrik Jander
  • 5,515
  • 3
  • 23
  • 31
0
votes
1 answer

Can I adapt from XMLEventWriter to XMLStreamWriter?

In order to support a StAXResult as input, I'd like to be able to adapt from XMLEventWriter to XMLStreamWriter. Its possible to go in the other direction via XMLOutputFactory2.createXMLEventWriter(XMLStreamWriter). There's a similar asymmetry for…
Mumrah
  • 392
  • 2
  • 9
0
votes
2 answers

Write mix node (tag + text )replacing only specific node

I have a loop between child nodes I can have word a fo:block than another word like: Hi ok hi ok fo block < /fo:block> maybe another text node here... I have to replace with
but i have to leave text…
robyp7
  • 481
  • 2
  • 7
  • 25
0
votes
1 answer

fo:Table to html table - xslt

I'm trying to write an xslt to generate another xslt that purpose is replacing only all xsl:fo with html tags..XSLT 1 I use CDATA around "xsl" namespace for avoid processing this kind of tag by the xslt. My scope is processing only xsl:fo directive…
robyp7
  • 481
  • 2
  • 7
  • 25
0
votes
2 answers

Producing html xslt from xsl:fo

I'm tring to transform an xsl:fo into xslt (for HTML output). Then, I would apply xslt instead of xsl:fo obtaining the HTML output instead of a PDF. How can do this? I need API for XML Processing, or JAXP that transforms XML and XSL to another…
robyp7
  • 481
  • 2
  • 7
  • 25