Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Verify XML Element Name with dom\GetElementsByTagName.java
How to verify if an XML contains a specific element with dom\Writer.java provided in the Apache Xerces package?
✍: FYIcenter
You can verify if an XML contains a specific element with dom\Writer.java provided in the Apache Xerces package as shown below.
Compile and run dom\Writer.java with "-e" option to search for XML elements by name:
\fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\javac dom\GetElementsByTagName.java \fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\java -cp .;..\xercesSamples.jar;..\xercesImpl.jar;..\xml-apis.jar dom.GetElementsByTagName -e ID User.xml <ID>
⇒ dom\ElementPrinter.java - Apache Xerves DOM Sample
⇐ dom\GetElementsByTagName.java - Apache Xerves DOM Sample
2017-11-11, 8930🔥, 0💬
Popular Posts:
What Is jtds-1.2.2.jar? jtds-1.2.2.jar is the JAR files of jTDS Java library 1.2.2, which is a JDBC ...
Apache Log4j provides the interface that applications should code to and provides the adapter compon...
JDK 11 jdk.javadoc.jmod is the JMOD file for JDK 11 Java Document tool, which can be invoked by the ...
What Is HttpComponents httpcore-4.4.6.jar? HttpComponents httpcore-4.4.6.jar is the JAR file for Apa...
commons-io-2.6-sources.j aris the source JAR file for Apache Commons IO 2.6, which is a library of u...