Opened 18 years ago
Closed 18 years ago
#71 closed defect (invalid)
error with processing instruction PI in XMLSerializer
Reported by: | fBechmann ...at ... t-online de | Owned by: | cmlenz |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Serialization | Version: | 0.3.3 |
Keywords: | needinfo | Cc: |
Description (last modified by cmlenz)
Hi,
the statement
yield Markup('<?%s %s?>' % data)
in method __call__() of the XMLSerializer is invalid.
While fixing this, an example as how to preceed an XML file w/ the XML PI
<?xml version="..." encoding="..."?>
would be helpful.
And while I'm at it: Genshi is a great piece of Python.
Regards, Frank
Change History (3)
comment:1 Changed 18 years ago by cmlenz
- Description modified (diff)
comment:2 in reply to: ↑ description Changed 18 years ago by cmlenz
- Keywords needinfo added
- Milestone 0.4 deleted
Replying to fBechmann ...at ... t-online de:
Hi,
the statement yield Markup('<?%s %s?>' % data) in method __call__() of the XMLSerializer is invalid.
Why? data should be a (target, data) tuple, so the first %s should be replaced with the target, and the second %s with the data of the PI.
Can you provide a concrete example where this isn't working?
comment:3 Changed 18 years ago by cmlenz
- Resolution set to invalid
- Status changed from new to closed
Closing due to lack of feedback, and because I maintain the cited code is correct.
(fix description formatting)