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:
Read XML/DTD from Socket with socket\DelayedInput.java
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.java provided in the Apache Xerces package?
✍: FYIcenter
If you want to see how XML parser handles XML document with DTD validation from socket connections, you can try the socket\DelayedInput.java provided in the Apache Xerces package to display element type information.
Run socket\DelayedInput.java with "-v" option, if you have Apache Xerces 2.11.0 installed:
\fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\java -cp .;..\xercesImpl.jar socket.DelayedInput -v UserError.xml # filename: UserError.xml read 48 bytes in 380 ms: [\n<!-- Copyright (c) 2017 FYIcenter.com -->\n<!DOC] read 48 bytes in 1468 ms: [TYPE User [\n <!ELEMENT User (ID+, BirthDate+, ] read 48 bytes in 477 ms: [Name+, Sex+)>\n <!ELEMENT ID (#PCDATA)>\n <!EL] read 48 bytes in 1127 ms: [EMENT BirthDate (#PCDATA)>\n <!ELEMENT Name (#P] read 48 bytes in 1825 ms: [CDATA)>\n <!ELEMENT Sex (#PCDATA)>\n]>\n\n<User>\n ] (User read 48 bytes in 969 ms: [ <ID>101</ID>\n <Name>Frank Y. Ivy</Name>\n</] (ID )ID (Name )Name read 6 bytes in 985 ms: [User>\n] [Error] UserError.xml:14:8: The content of element type "User" must match "(ID+, BirthDate+,Name+,Sex+)". )User read -1 bytes in 131 ms: no data read
⇒ Read XML with Schema from Socket with socket\DelayedInput.java
⇐ Read XML from Socket with socket\DelayedInput.java
2017-09-20, 59462🔥, 0💬
Popular Posts:
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...
How to download and install ojdbc7.jar for Oracle 12c R1? ojdbc8.jar for Oracle 12c R1 is a Java 7 a...
JDK 11 java.security.jgss.jmod is the JMOD file for JDK 11 Security JGSS (Java Generic Security Serv...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...