jaxp\DatatypeAPIUsage.java - Apache Xerves JAXP Sample

Q

What is the jaxp\DatatypeAPIUsage.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 installed.

✍: FYIcenter

A

jaxp\DatatypeAPIUsage.java provided in the Apache Xerces package demonstrates usage of the JAXP 1.3 Datatype API.

Here is how to run jaxp.DatatypeAPIUsage.java, if you have Apache Xerces 2.11.0 installed:

>\fyicenter\jdk-1.8.0\bin\java 
   -cp \fyicenter\xerces-2_11_0\xercesSamples.jar jaxp.DatatypeAPIUsage
   
There are fewer milliseconds in my phone number than my lifespan.
P12Y10M is of type: {http://www.w3.org/2003/11/xpath-datatypes}yearMonthDuration
P10DT10H12M0S is of type: {http://www.w3.org/2003/11/xpath-datatypes}dayTimeDuration
'duration': P12Y10M1D is not 'yearMonthDuration'!!!
The approximate end of the number of milliseconds in my phone number was 1975-11-26T01:46:13.519+00:05
Adding the duration myLife to the above calendar:2005-02-10T15:31:13.519+00:05
Very good: 2005-02-10T15:31:13.519+00:05 is equal to 2005-02-10T15:31:13.519+00:05

 

Using Apache Xerces Socket Sample Programs

Display XML Element Type Info with jaxp\TypeInfoWriter.java

Using Apache Xerces JAXP Sample Programs

⇑⇑ FAQ for Apache Xerces XML Parser

2017-09-28, 2840🔥, 0💬