Hi Thomas,

I just checked the difference between the original file and the file after
serializing...In second file one character is not getting written.(§ ..this
charaters is written as § without first character)...Any way I have another
question ....
I have a use elements inside <g> element...

<g id="4598#400" style="stroke:rgb(255,190,201);fill:rgb(255,190,201)"
varType="meVar">
        <use x="269.707136" xlink:href="#Global_1146" y="1426.839960"/>
      </g>

I cannot get the attribute xlink:href.....If i check wether the attribute
exists using element.getAttribute("xlink:href") its returning false....But
if i use the below code

NamedNodeMap nnm = child.getAttributes();                                       
                                
for(int k=0;k<nnm.getLength();k++)
{
        System.out.println("attributes are " + nnm.item(k).getNodeName());      
                                                                        
}

It displays

attributes are x
attributes are y
attributes are xmlns:xlink
attributes are xlink:href
attributes are xlink:type
attributes are xlink:actuate
attributes are xlink:show

Any idea

Thanks & Regards
Prad

thomas.deweese wrote:
> 
> Hi Prad,
> 
> prad <[EMAIL PROTECTED]> wrote on 08/24/2006 03:18:52 AM:
> 
>> Thank U very much....every thing is workin fine...But for few files 
> after
>> serializing if i try to create svgdom using SAXSVGDocumentFactory's
>> createSVGDoucment() method it giving some 
> java.io.UTFDataFomatException...
> 
>    I don't have a clue what would be causing this.  Does anyone
> else have any ideas.
> 
>> The exception was ...
>> java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
>>         at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown 
> Source)
> 
>     I have to wonder a little at this exception because AFAIK
> there is no invalid byte 1 of a 1-byte UTF-8 sequence 
> (a 1 byte UTF-8 sequence is any byte with the high bit clear,
> but in this case all of 0x00-0x7F I thought were valid).
> 
>>         at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
>>         at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>>         at org.apache.xerces.impl.XMLEntityScanner.skipChar(Unknown 
> Source)
> 
>     I wonder a little that this happend in xerces while loading
> an entity.  I wonder if it's a bug... You might try updating the
> Xerces you are using....
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/getting-dom-from-svg-file-tf2120596.html#a6055774
Sent from the Batik - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to