Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
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>
Â
2017-11-11, 7177👍, 0💬
Popular Posts:
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
What Is commons-io-2.6.jar? commons-io-2.6.jar is the JAR file for Commons IO 2.5, which is a librar...
maven-model-builder-3.5. 4.jaris the JAR file for Apache Maven 3.5.4 Model Builder module. Apache Ma...
maven-model-builder-3.5. 4.jaris the JAR file for Apache Maven 3.5.4 Model Builder module. Apache Ma...