Revision 821
Added by bojilova over 22 years ago
DocumentImpl.java | ||
---|---|---|
408 | 408 |
//", " + currentNode.nodetype + |
409 | 409 |
//", " + currentNode.nodename + |
410 | 410 |
//", " + currentNode.nodedata + ")]"); |
411 |
|
|
412 | 411 |
// Print the end tag for the previous node if needed |
413 | 412 |
// |
414 | 413 |
// This is determined by inspecting the parent nodeid for the |
... | ... | |
469 | 468 |
} else if (currentNode.nodetype.equals("ATTRIBUTE")) { |
470 | 469 |
out.print(" " + currentNode.nodename + "=\"" |
471 | 470 |
+ currentNode.nodedata + "\""); |
471 |
|
|
472 |
// Handle the NAMESPACE nodes |
|
473 |
} else if (currentNode.nodetype.equals("NAMESPACE")) { |
|
474 |
out.print(" xmlns:" + currentNode.nodename + "=\"" |
|
475 |
+ currentNode.nodedata + "\""); |
|
476 |
|
|
477 |
// Handle the TEXT nodes |
|
472 | 478 |
} else if (currentNode.nodetype.equals("TEXT")) { |
473 | 479 |
if (previousNodeWasElement) { |
474 | 480 |
out.print(">"); |
Also available in: Unified diff
added support for Namespaces.
Metacat now can store and retrieve XML documents with Namespaces.
Namespace is stored as separate record in xml_nodes table with type "NAMESPACE"
where nodename is the prefix and nodedata is the uri of the namespace.