Hi Thomas,
Now my job is to split or divide a big svg document to many piece of svg
files....ie suppose i have a Sample.svg....this should be divided into
Sample1.svg,Sample2.svg............and more. Is it possible to do like this
Thanks & Regards
Prad
thomas.deweese wrote:
>
> Hi Prad,
>
> prad <[EMAIL PROTECTED]> wrote on 08/30/2006 05:57:05 AM:
>
>> 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)...
>
> Sounds like a problem in the serializer. You might try using
> batik.dom.util.DOMUtilities.writeDocument.
>
>> Any way I have another question ....
>> I have a use elements inside <g> element...
>>
>> <use x="269.707136" xlink:href="#Global_1146" y="1426.839960"/>
>
>> I cannot get the attribute xlink:href.....If i check weather the
> attribute
>> exists using element.getAttribute("xlink:href") its returning
> false....But
>> if i use the below code
>
> This is the 'href' attribute in the 'xlink' namespace so you need to
> use
> the getAttributeNS version:
>
>
> element.getAttributeNS(org.apache.batik.util.XMLConstants.XLINK_NAMESPACE_URI,
> "xlink:href");
>
>> 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]
>>
>
>
> ---------------------------------------------------------------------
> 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#a6132437
Sent from the Batik - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]