Apache XMLSchema core parser shows wrong parent element

Alles, was den Apache betrifft, kann hier besprochen werden.

Apache XMLSchema core parser shows wrong parent element

Postby BATMAN_2008 » 01. April 2021 10:35

As I am not getting any response for this topic posting it here.
Detailed question with the code sample that I have till now: https://stackoverflow.com/questions/66901116/apache-xmlschema-core-xsd-xml-parser-shows-the-root-element-as-parent-for-all-ch

I am trying to parse the XSD using Apache XMLSchema Core. I am able to parse the file and store the Parent and its Child Element information within the HashMap.

Each Child element is stored in the type XmlSchemaElement which also consists of the Parent information of that child element. When I try to see the information related to a child element it shows the root element for all instead of its immediate parent.

For example: In my XSD, RestaurantMenu is the Root element and its immediate children are Food. Also, Food has children's name, price, calories etc. When I see the parent element for name I would expect it to be Food as that's the immediate Parent but during Debug shows the RestaurantMenu as its parent which is a bit confusing.

I wanted to know how can I get the information related to the immediate parent for each element.
BATMAN_2008
 
Posts: 1
Joined: 01. April 2021 10:33
XAMPP version: 2,3
Operating System: Mac

Re: Apache XMLSchema core parser shows wrong parent element

Postby Altrea » 01. April 2021 11:06

BATMAN_2008 wrote:As I am not getting any response for this topic posting it here.
Detailed question with the code sample that I have till now: https://stackoverflow.com/questions/669 ... for-all-ch

You just have posted that question TODAY.
I don't know what kind of expactations you have about response time ob free community boards, but a few minutes or hours are not enough to justify multi posting on different communities.
You even didn't inform the other community about that multi post(s).

I don't know what you think this community board here is about, but we provide only support for XAMPP related issues with Apache here in this forum. This is not a general Apache support forum for foreign installations and stacks.
If you think you have investigated a bug in Apache here, a community board is even not the right way to address this. Go here: https://httpd.apache.org/bug_report.html
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to Apache

Who is online

Users browsing this forum: No registered users and 17 guests