Now I added Error handler and...
Error: Line: 3, Col: 8, Message: Unknown element ''track''
Error: Line: 4, Col: 9, Message: Unknown element ''name''
Error: Line: 5, Col: 12, Message: Unknown element ''made_by''
Error: Line: 7, Col: 12, Message: Unknown element ''terrain''
Error: Line: 8, Col: 36, Message: Unknown element ''size''
Error: Line: 8, Col: 36, Message: Attribute ''{}width'' is not declared for element ''size''
Error: Line: 8, Col: 36, Message: Attribute ''{}height'' is not declared for element ''size''
Error: Line: 9, Col: 33, Message: Unknown element ''heightmap''
Error: Line: 9, Col: 33, Message: Attribute ''{}file'' is not declared for element ''heightmap''
Error: Line: 10, Col: 27, Message: Unknown element ''texture''
.
.
.
But those errors were remover by removing: parser->setValidationScheme(XercesDOMParser::Val_Always);
No there''s no errors, but it doesn''t work. All nodes it prints out are:
NodeType=9
NodeName=#document
NodeType=1
NodeName=track
NodeType=3
NodeName=#text
This really is eating me
Isn''t there really any tutorial available. Just simply how to get
tag named "aaa" and get attribute values.
All I need now is this and I''m just fighting to understand why xerces not working.
There are API Docs, sample code how to create parser and call parser->parse("") but why can''t they tell how to read parsed document???