on 02-18-2019 2:25 PM
The Web IDE gives an error for my XML file. How can I fix this? Thank you!
<Dialog contentWidth="50%" contentHeight="40%" title="{i18n>createJourneyTitle}" xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:mvc="sap.ui.core.mvc"><l:VerticalLayout width="100%"> <l:content> <Label text="{i18n>name}:" labelFor="journeyName"/> <Input id="journeyName" required="true"/> <Label text="{i18n>description}:" labelFor="journeyDesc"/> <Input id="journeyDesc"/> </l:content> </l:VerticalLayout> <beginButton> <Button press="onCreate" text="{i18n>createJourneyBtn}"></Button> </beginButton> <endButton> <Button press="onDialogClose" text="{i18n>cancelBtn}"></Button> </endButton> </Dialog>
Web IDE somehow requires <core:FragmentDefinition xmlns:core="sap.ui.core"> as the root node of the fragment, even though syntactically the XML is perfectly valid. This is a Web IDE issue.
<core:FragmentDefinition xmlns:core="sap.ui.core">
<Dialog xmlns="sap.m" ...>
</Dialog>
<core:FragmentDefinition>
The FragmentDefinition is required only if there are multiple root nodes. But Web IDE doesn't seem to care and complaints that the XML is invalid.
_________
Alternatively, you can switch to the Basic XML validator in the project settings.
This also resolves the Invalid XML error but applies to all XML documents.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.