FYI [Fwd: [Bug 169] unable to select prefix to use when writing startTag,endTag, and attribute]

Aleksander Slominski <[email protected]> Mon, 12 Jan 2004 13:30:47 -0500
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>

-------- Original Message --------
Subject: 	[Bug 169] unable to select prefix to use when writing 
startTag,endTag, and attribute
Date: 	Mon, 12 Jan 2004 13:25:41 -0500 (EST)
From: 	[email protected]
To: 	[email protected]



http://www.extreme.indiana.edu/bugzilla/show_bug.cgi?id=169





------- Additional Comments From [email protected]  2004-01-12 13:25 -------
there is related problem that is not immediately visible. consider:

<b:a xmlns:f="foo" xmlns:b="foo>
  <f:child/>
</b:a>

in this case XmlSerialzier will incorrectly produce <b:child/>
*unless* setPrefix is called to setPrefix("f", "foo") before
starTag("foo", "child") but that will lead to spurious 
namespace delcaration after serializaiton (unless
serialzier will not print duplicate namespace delcaration
but that would be very unintuitive ...):

<b:a xmlns:f="foo" xmlns:b="foo>
  <f:child xmlns:f="foo" />
</b:a>


i see no easy solution except to add startTag(prefix, ns, name)
or use setProperty() to set current element/attribute prefix 
(not very elegant solution!)

this is serious problem if we want XML canonicalizaitn to work
correctly with XmlSerializer ...





------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.


-- 
The best way to predict the future is to invent it - Alan Kay


 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Upgrade to 128-bit SSL Security!
http://us.click.yahoo.com/qZ0LdD/yjVHAA/TtwFAA/2U_rlB/TM
---------------------------------------------------------------------~->

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/xmlpull-dev/

To unsubscribe from this group, send an email to:
 [email protected]

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/