You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i could write XPATH queries easily for an element based on some attribute. selecting on a child-element with a certain content is hard
said XPATH could be used in XSD's key and keyref and unique constraints and rules.
said XPATH could be used by downstream consumers of a BOM xml, if they want to query the document.
examples:
i could query one/all BOM documents ad find all tasks that have a dateDiff of started-to-done-interval of more than 10 minutes,
instead of jumping to :parent here and there (if it was possible with nested-elements at all)
PS: you guys told me it was hard for you to get an idea what should be an attribute in XML and what a nested element, as you are more used to JSON and YAML.
maybe this helps to get the right idea:
if you write a property in JSON schema, then it is an attribute in XML, not a nested element.
If you write an array JSON schema, then the elements should be nested in XML, not attributes.
The text was updated successfully, but these errors were encountered:
jkowalleck
changed the title
schema optimizations: convert nested-elements to attributes
XML schema optimizations: convert nested-elements to attributes
Jun 16, 2023
jkowalleck
changed the title
XML schema optimizations: convert nested-elements to attributes
XML schema optimizations: convert simple nested-elements to attributes
Jun 16, 2023
jkowalleck
changed the title
XML schema optimizations: convert simple nested-elements to attributes
XML schema: convert simple nested-elements to attributes
Jul 1, 2023
jkowalleck
changed the title
XML schema: convert simple nested-elements to attributes
BC: [XML] schema: convert simple nested-elements to attributes
Feb 28, 2024
Have things attributes, instead of child elements,
if they are simple and describe the entity/element and don't need to be contained.
from things like this
to this like this
benefits of attributes over elements:
key
andkeyref
andunique
constraints and rules.examples:
instead of jumping to
:parent
here and there (if it was possible with nested-elements at all)PS: you guys told me it was hard for you to get an idea what should be an attribute in XML and what a nested element, as you are more used to JSON and YAML.
maybe this helps to get the right idea:
The text was updated successfully, but these errors were encountered: