CVS Update: xmlpull-api-v1/src/java/serializer_api/org/xmlpull/v1/serializer
Aleksander Andrzej Slominski <[email protected]>
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
aslom 02/07/07 20:54:59
Modified: src/java/serializer_api/org/xmlpull/v1/serializer
XmlSerializer.java
Log:
added getPrefix method to simplify creation of prefixes for QNames
for example useful whene generating value of xsi:type attribute
Revision Changes Path
1.10 +5 -0 xmlpull-api-v1/src/java/serializer_api/org/xmlpull/v1/serializer/XmlSerializer.java
Index: XmlSerializer.java
===================================================================
RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/serializer_api/org/xmlpull/v1/serializer/XmlSerializer.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -t -w -r1.9 -r1.10
--- XmlSerializer.java 2002/06/23 21:11:13 1.9
+++ XmlSerializer.java 2002/07/08 01:54:59 1.10
@@ -135,6 +135,11 @@
public void setPrefix (String prefix, String namespace) throws IOException;
/**
+ * Return prefix that is currently bound to namespace.
+ */
+ public String getPrefix (String namespace);
+
+ /**
* Writes a start tag with the given namespace and name.
* If there is no prefix defined for the given namespace,
* a prefix will be defined automatically.