generating code from testListproperty.xml is giving schema error.

asked 2015-01-30 00:35:26 -0800

Bhagwatks gravatar image

updated 2015-08-26 09:53:58 -0800

ry.jones gravatar image
Linux Foundation Staff

Dear Sir,

when I am trying to generate code from the example cpp/tools/CPSAppGenerator/SampleXMLs/testListproperty.xml then the folloeing error comes .

python generateCPSApp.py ./SampleXMLs/testListProperty.xml -p ../../samples/generated1/

Generating this xml will cause previously generated files to be deleted. Do you wish to continue? (y/n) (Default is n): y

Processing xmlfile: ./SampleXMLs/testListProperty.xml

./SampleXMLs/testListProperty.xml:36: element listProperty: Schemas validity error : Element '{http://www.alljoyn.org/controlpanel/gen}listProperty': This element is not expected. Expected is one of ( {http://www.alljoyn.org/controlpanel/gen}container, {http://www.alljoyn.org/controlpanel/gen}stringProperty, {http://www.alljoyn.org/controlpanel/gen}booleanProperty, {http://www.alljoyn.org/controlpanel/gen}dateProperty, {http://www.alljoyn.org/controlpanel/gen}timeProperty, {http://www.alljoyn.org/controlpanel/gen}scalarProperty, {http://www.alljoyn.org/controlpanel/gen}labelProperty, {http://www.alljoyn.org/controlpanel/gen}action ).
./SampleXMLs/testListProperty.xml fails to validate

ERROR - xml xsd validation did not pass

so I have checked all code and related thing but didn't getting the right answer to fix this .

Please help in this regard.

Thanks and Regards Bhagwat

edit retag flag offensive close merge delete

Comments

Please file a bug. https://jira.allseenalliance.org/browse/ASACORE

ry.jones ( 2015-03-05 10:37:38 -0800 )edit

Hi, me too have the same error. Too bad support for Alljoyn from the people around the globe.

anujtripathi.04 ( 2015-08-26 05:43:35 -0800 )edit

Hi Bhagwat, I just checked the testListProperty.xml. The xml is not in the correct format that the codegen accepts. Try the other sample xmls. I tried debugging that xml but no luck. I can help you with the direct cc/cpp code that is required for list/radio button/spinner property.

anujtripathi.04 ( 2015-09-02 01:23:19 -0800 )edit