View previous topic :: View next topic |
Author |
Message |
xxltux
Joined: 10 Sep 2007 Posts: 15
|
Posted: Sat Jan 12, 2008 9:55 am Post subject: Tango 0.99.4 error with mango SAX |
|
|
Start element: collection
Start element: description
Data:
Some recipes used for the XML tutorial.
End Data
End: description
Start element: recipe
Data: <title>Beef Parmesan with Garlic Angel Hair Pasta</title>]]>
<ingredient name="beef cube steak" amount="1.5" unit="pound"/>
<preparation>
<step>
Preheat oven to 350 degrees F (175 degrees C).
</step>
</preparation>
<comment>
Make the meat "ahead of time", & refrigerate over night, the acid in the
tomato sauce will tenderize the meat even more. If you do this, save the
mozzarella till the last minute. tango.core.Exception.ArrayBoundsException@mango.xml.sax.parser.teqXML(521): Array index out of bounds |
|
Back to top |
|
|
xxltux
Joined: 10 Sep 2007 Posts: 15
|
Posted: Sun Jan 13, 2008 7:49 am Post subject: |
|
|
I use digital mars 1.024 |
|
Back to top |
|
|
teqdruid
Joined: 11 May 2004 Posts: 390 Location: UMD
|
Posted: Sun Jan 13, 2008 7:51 pm Post subject: |
|
|
I can't replicate... what code are you running, and which xml file is it using as input? |
|
Back to top |
|
|
xxltux
Joined: 10 Sep 2007 Posts: 15
|
Posted: Mon Jan 14, 2008 5:23 am Post subject: |
|
|
I use the samples; and en application with SimpleXMLD. |
|
Back to top |
|
|
xxltux
Joined: 10 Sep 2007 Posts: 15
|
Posted: Mon Jan 14, 2008 5:37 am Post subject: |
|
|
It's work at my IUT, I don't know why this doesn't work at house |
|
Back to top |
|
|
od
Joined: 08 Feb 2008 Posts: 2
|
|
Back to top |
|
|
xxltux
Joined: 10 Sep 2007 Posts: 15
|
Posted: Sun Feb 10, 2008 5:21 am Post subject: |
|
|
No, it's an PIV in 32bits on NT5. But I don't know why this doesn't work on my computer and this work perfectly in iut.
Do you want the exe? |
|
Back to top |
|
|
teqdruid
Joined: 11 May 2004 Posts: 390 Location: UMD
|
Posted: Sun Feb 10, 2008 2:44 pm Post subject: |
|
|
A test case- great. Just checked in a fix, so please give it a shot.
@xxltux... Does this fix your issue as well? |
|
Back to top |
|
|
xxltux
Joined: 10 Sep 2007 Posts: 15
|
Posted: Sun Feb 10, 2008 3:04 pm Post subject: |
|
|
The sample work perfectly but my application not.
533 throw new TeqXMLException(
534 "Cannot resolve entity '" ~ ent ~ "'");
If the ent is in dchar, this doesn't work? |
|
Back to top |
|
|
teqdruid
Joined: 11 May 2004 Posts: 390 Location: UMD
|
Posted: Sun Feb 10, 2008 3:13 pm Post subject: |
|
|
xxltux wrote: | The sample work perfectly but my application not.
533 throw new TeqXMLException(
534 "Cannot resolve entity '" ~ ent ~ "'");
If the ent is in dchar, this doesn't work? |
Oops... forgot about that. Just put in a fix for that |
|
Back to top |
|
|
xxltux
Joined: 10 Sep 2007 Posts: 15
|
Posted: Sun Feb 10, 2008 3:15 pm Post subject: |
|
|
At 10PM, it's normal |
|
Back to top |
|
|
xxltux
Joined: 10 Sep 2007 Posts: 15
|
Posted: Mon Feb 11, 2008 4:28 am Post subject: |
|
|
why don't define an function like :
char[] toString(char[] retVal)
{
return retVal;
} |
|
Back to top |
|
|
teqdruid
Joined: 11 May 2004 Posts: 390 Location: UMD
|
Posted: Mon Feb 11, 2008 7:22 am Post subject: |
|
|
Because it'd have to me in the module as the other toString call, and I don't/can't mess around with Tango modules. You might suggest it to them. |
|
Back to top |
|
|
od
Joined: 08 Feb 2008 Posts: 2
|
Posted: Mon Feb 11, 2008 11:42 am Post subject: |
|
|
Thank you for fixing! Works pretty fine now. |
|
Back to top |
|
|
larsivi Site Admin
Joined: 27 Mar 2004 Posts: 453 Location: Trondheim, Norway
|
Posted: Mon Feb 11, 2008 12:53 pm Post subject: |
|
|
what would be the purpose of
char[] toString(char[])
? |
|
Back to top |
|
|
|