Article View: aus.computers.java
Article #47Pls help...How to parse a tag-delimited file to draw lines and circles using java?
From: priya_j2ee
Date: Sun, 09 Oct 2005 21:05
Date: Sun, 09 Oct 2005 21:05
26 lines
1694 bytes
1694 bytes
Can anyone please explain how I can open and parse a tag delimited text
file and draw a dotted
line joining the points mentioned in the tag <A>. The type J will form
a circle inside the
dotted box. I want to implement this in Java.
ex:
<list>
<A x="1.2" y="0.5"/>
<A x="1.2" y="10.1"/>
<type="J">
<pt x="5.0" y="3.0"/>
<pt x="3.0" y="6.0"/>
<pt x="5.0" y="8.0"/>
<pt x="8.0" y="6.0"/>
</type>
<A x="11.0" y="0.5"/>
<A x="11.2" y="10.1"/>
This may be an XML file.
I am trying to implement a project and I am stuck in this.. Pls help.
Thanks much
Technical Details
Message-ID:
<1128891921.034861.296700@g14g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10d6db,427a335a6fb2067c,start X-Google-Attributes: gid10d6db,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail From: priya_j2ee@yahoo.com Newsgroups: aus.computers.java Subject: Pls help...How to parse a tag-delimited file to draw lines and circles using java? Date: 9 Oct 2005 14:05:21 -0700 Organization: http://groups.google.com Lines: 27 Message-ID: <1128891921.034861.296700@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: 24.10.254.118 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1128891926 26129 127.0.0.1 (9 Oct 2005 21:05:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 9 Oct 2005 21:05:26 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=24.10.254.118; posting-account=puWV8w0AAAB0Sh0_N6bqj7nsS1pDqINI