I have an element 'ABC'. For that element there are 3 child elements. a,b and c and these are of type integer. and maximum occurrence of element c is infinity. if the value of element 'a' is 1 and 'b' is 2 then the occurrence of 'c' should be 3. Can i set the maximum occurrence of element c dynamically. or based on the value of elements 'a' and 'b' Eg:Refer the images Refer the screenshot of code Refer the screenshot of error message Refer the screenshot of value
How can i restrict maximum occurrence of an element based on another element value in XML
244 views Asked by ANUJI VARGHESE At
1
There are 1 answers
Related Questions in XML
- Postgres && statement Error in Mybatis Mapper?
- Sorting items after building an XML feed?
- C# XML ModelBinding - ASP.NET Core 8 Web API - required field not found
- How can I create an automatic table of contents in docx without the text being bold?
- Odoo 16 Make Fields Readonly Using XPath
- Using similar tags for different objects in XML
- Android Studio problem like gradle sync project failed and plugin error, version 2023.2.1 Iguana
- error: cannot find symbol View root = inflater.inflate(R.layout.toolbar, parent, false);
- Android camera application restriction to 12 mp
- Azure Data Factory Copy Activity Only Importing First Row of XML file
- I am not able to remove space below the navigation view icon in android studio. What;s wrong with code?
- Field can be converted to a local variable ,convert field to local variable in onCreate method
- Deserialize XML with optional different name
- Retrieve tags from xml using python
- Getting attribute from xml and printing it error
Related Questions in XSD
- Delphi can not compile the unit create by its "XML Data Binding Wizard"
- In XSD do you have to import the standard schema in order to use it?
- XML default namespace vs prefix namespace declarations
- write xml using xsd using xmlschema_from_json giving error: Reason: unable to select an element for decoding data, provide a valid 'path' argument
- eclipse xml validation, https certificate SunCertPathBuilderException
- Cannot Find The Declaration Of Element 'Document'., Line '1', Column '11'
- ORA-31043: Element '' not globally defined in schema ''
- xmltype.schemaValidate changes timestamp values resulting in regex validation failure
- Jaxb inheritance with multiple XSD files fails when 1 XSD file doesn't contain a tag
- How to move namespace declaration from inner element to upper element?
- how to iterate and print logger xml object response data value we don't have java class for that object it's XSD and there is no toString()
- Re-Serialize a C# Dataset through an XSD to a XML file
- Dataweave script or function to transform unordered JSON payload to ordered XML payload?
- Imported XSD elements are always "invalid"
- XML validation Cannot Resolve The Name
Related Questions in ALTOVA
- Altova Mapforce - How to use results from Tokenize at the same time in a database call?
- XML output in Mapforce - Add non-default namespace in element without prefix
- Muenchian Method not working in Altova XMLSpy
- XmlSpy: Test XSLT W locally with static Java Methods
- How to convert xsd to json schema in Altova XMLSpy 2014
- XSD Validators swallow multiple errors in SAX parse
- Convert string field to decimal in Altova Mapforce
- Using LibXSLT (xsltproc) as an external engine in Altova's XMLSpy
- How do i validate a Stylevision generated XSLT outside of Altova Stylevision?
- How can i restrict maximum occurrence of an element based on another element value in XML
- ServiceBroker : Stored procedure working as stand-alone but not as trigger
- XSD validation error: element does not exist in the redefined schema with target namespace
- Altova Mapforce Designer - how to use <msxsl:script> tags
- xslt transformation works in Altova but not in python
- Altova XMLSpy - Xpath "Unexpected 'atomic' item xs:string" error from tokenize() function
Related Questions in XMLSPY
- Select repeating node with xpath
- Does XMLSpy integration package work with Visual Studio 2012
- Change Xmlspy editor background color
- How do we build/assemble test data for large XML schema?
- In a WSDL file, via a free solution can the XPath of a response element be determined without invoking the service?
- <soap:address> location attribute when using Netbeans New -> Webservice from WSDL using XMLSpy
- XBRL Formula Feature in Altova Xmlspy
- How do I recode an XML document in XMLSpy to use entities
- How to create SimpleType enumeration with xmlspy in schema?
- Xslt : Create a namespace dynamically
- Xslt : Create root element (Starting Tag )dynamically
- XSL disable-output-escaping XML SPY vs SAXON
- Altova XMLspy 2014: Multi-line xpath in XSD 1.1 assertions
- What is allowed in Restricted XPaths (constraints)?
- XMLSpy ignores "minOccurs"? Why is this XML valid?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
XSD 1.1 schema with
xs:assert:That way a sample like
is considered valid while
raises a validation error about the assertion failing:
Assertion evaluation ('count(c) = a + b') for element 'ABC' on schema type '#AnonType_ABC' did not succeed..Tested with Xerces in oXygen, I don't have XMLSpy here to test.
Make sure you use a version that supports/has enabled XSD schema 1.1 support.