-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.drw files are missing the <net> open tag #14
Comments
Hi ERnsTL,
Thanks so much for your feedback - it's great to know that someone is
actually using DrawFBP! I will be working on these issues over the next
few days...
Regards,
Paul M.
…On Thu, Aug 9, 2018 at 10:03 AM, ERnsTL ***@***.***> wrote:
While implementing an XML parser for .drw files, this error message came
up trying to parse .drw files genareted by v2.12.23:
element <drawfbp_file> closed by </net>
which means that the corresponding opening tag <net> is missing, which is
true:
<?xml version="1.0"?>
<drawfbp_file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://github.com/jpaulm/drawfbp/blob/master/lib/drawfbp_file.xsd"> <desc> </desc> <complang>Java</complang> <clicktogrid>true</clicktogrid>
<blocks><block> <x> 123 </x> <y> 54 </y> <id> 16 </id> <type>I</type> <width>187</width> <height>17</height> <description>-quiet /var/log/syslog</description> <multiplex>false</multiplex><invisible>false</invisible><issubnet>false</issubnet>
The <net> opening tag needs to be inserted after <drawfbp_file [...]>
like so:
<?xml version="1.0"?>
<drawfbp_file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://github.com/jpaulm/drawfbp/blob/master/lib/drawfbp_file.xsd"><net> <desc> </desc> <complang>Java</complang> <clicktogrid>true</clicktogrid>
<blocks><block> <x> 123 </x> <y> 54 </y> <id> 16 </id> <type>I</type> <width>187</width> <height>17</height> <description>-quiet /var/log/syslog</description> <multiplex>false</multiplex><invisible>false</invisible><issubnet>false</issubnet>
[...]
Please add outputting this <net> tag when saving .drw files from DrawFBP.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATGJ3FlG9azkr-BESkJ-E0V4p3O2mx3ks5uPEEcgaJpZM4V1w15>
.
|
Hi ERnsTL, I cannot duplicate your problem - the code includes the "net" tag, and all the saved files I have checked all show it, including one I saved a few minutes ago... I am wondering if it was deleted by one of the tools you use - or possibly it is a "reserved" symbol in XML... Can you check some of your other files, and see if they all have this problem...? Thanks in advance. Paul |
Greetings, the error showed up in all the .drw files used for development of the .drw parser. I just created a new test file with just one process for testing using DrawFBP v2.13.24 - the latest available on Maven. Output is:
Before the Nicely formatted:
I dont have any other files besides these test files. Hoping to use .drw files more for visual development! |
Aha! Got it! Dumb error: if desc was missing, I suppressed the net tag as well. It will be fixed in v2.14.2... Apologies! |
No problem; thanks for fixing! |
Can confirm the issue is fixed in v2.14.2 - thanks again! |
Good news! Thanks for both notes! Onwards and upwards! |
While implementing an XML parser for .drw files, this error message came up trying to parse .drw files genareted by v2.12.23:
which means that the corresponding opening tag
<net>
is missing, which is true:The
<net>
opening tag needs to be inserted after<drawfbp_file [...]>
like so:Please add outputting this
<net>
tag when saving .drw files from DrawFBP.The text was updated successfully, but these errors were encountered: