-
Notifications
You must be signed in to change notification settings - Fork 35
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
attribute is missing #25
Comments
Hello, I've tested with that XSD and somehow the attribute is not present in the XsdExtension element. I'll need some time to understand the issue, I'll probably get back to you on the weekend. Edit: At first glance it seems that the DOM library that I'm using to convert the XSD to a list of nodes isn't parsing that element somehow, it's weird. |
btw... the element "MinimumManufacturerAgeRecommended" is also missing when it is a base xsd |
Can you send the xsd files that you are using so I can reproduce the issue more accurately? |
I found the problem and I've solved both situations reported. I'm trying to perform a new release but I'm getting some kind of timeout at the moment. I'll try it later and inform you. |
thanks for the fast response! |
hello |
I think my deployment "failed" but the new version is already deployed, (1.0.30). Simply put, the
In the second iteration the Parser goes through all the When a Any Either that or something is wrong with the Parser 😄 |
i found another problem when parsing the element path "AutoAccessory/ProductType/AutoAccessoryMisc/Amperage". |
I've investigated the issue and it looks like the problem is due to it being a "second degree" reference. This means that since the I'll need some time to solve this. |
It looks like I'm hitting the same issue with 1.0.32.
I cannot find a way to get to those attributes. |
Hello, First, sorry for taking so long solving this one @hehengkaifj , it really was a tough one. Like I said before XsdParser was only solving first degree references, for example: <xsd:element name="A" ref="B"/>
<xsd:element name="B" ref="C"/>
<xsd:element name="C"/> In this case XsdParser would be able to resolve both references.
But, the B clone that element A had wouldn't have the reference resolved with element C. This behavior was solved by adding the unsolved references of the clone in the Parser Reference Solving process. This way all clones should have be similar and have the same references solved. I released a new version, (1.1.0), with these changes, hopefully those solve your issues! If possible give me some feedback. |
I tried this one out on my code and I'm able to get the attributes from my earlier example. Thank you! |
<xsd:element name="AgeRecommendation">
xsd:complexType
xsd:sequence
<xsd:element name="MinimumManufacturerAgeRecommended" type="MinimumAgeRecommendedDimension" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="MinimumAgeRecommendedDimension">
xsd:simpleContent
<xsd:extension base="xsd:nonNegativeInteger">
<xsd:attribute name="unitOfMeasure" type="AgeRecommendedUnitOfMeasure" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:simpleType name="AgeRecommendedUnitOfMeasure">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="months"/>
<xsd:enumeration value="years"/>
</xsd:restriction>
</xsd:simpleType>
i can not find the attribute name "unitOfMeasure" in this case
The text was updated successfully, but these errors were encountered: