Processing instruction targets and data

Elliotte Rusty Harold <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <p04330100b9fc4cd0c911@[192.168.254.4]>
The XML grammar splits processing instructions into a target and 
data. For example, consider this processing instruction:

<?xml-stylesheet href='test.css' type='text/css'?>

The target is xml-stylesheet. The data is "href='test.css' 
type='text/css'". The target is separated from the data by white 
space. There is no requirement that the data have any particular 
syntax other than not containing the string "?>".

Currently, XMLPULL munges the target and the data together. Both are 
returned by getText().

I'm thinking it would be more convenient to have getName() return the 
target and getText() return the data. Most uses of processing 
instructions I'm familiar with do require this distinction to be 
made. We might as well make it by default.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | [email protected] | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/2U_rlB/TM
---------------------------------------------------------------------~->

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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.