Skip to content

XML Validation with GWT or other complex DOCTYPE - Error: Element type "ui:UiBinder" must be declared. #571

@RobertMolenda

Description

@RobertMolenda

Validation Issues with {module}.ui.xml

Sample XML

<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:gxt="urn:import:com.sencha.gxt.widget.core.client.form"
xmlns:c="urn:import:com.blazent.web.client.widgets.controls"
xmlns:gxtcontainer="urn:import:com.sencha.gxt.widget.core.client.container"
xmlns:sl="urn:import:com.blazent.web.client.widgets.saveLoadOverlay"
xmlns:form="urn:import:com.sencha.gxt.widget.core.client.form" xmlns:w="urn:import:com.blazent.web.client.widgets"
xmlns:html="urn:import:com.blazent.web.client.widgets.html"
xmlns:button="urn:import:com.blazent.web.client.widgets.button"
xmlns:lists="urn:import:com.blazent.web.client.widgets.lists">
<g:HTMLPanel>
... page stuff here ...
</g:HTMLPanel>
</ui:UiBinder>

Error Message:
Element type "ui:UiBinder" must be declared.

Next Issue - Imbedded <!ENTITY records are not processed

Sample XML

  %HTMLlat1;
  <!ENTITY % HTMLsymbol SYSTEM 
  "https://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
  %HTMLsymbol;
  <!ENTITY % HTMLspecial SYSTEM 
  "https://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
  %HTMLspecial;
  ]>

<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" ...

In the file place   and it will be flagged as not being declared

I like the tool for Angular - but I also have to support GWT based projects -

Thanks
Robert Molenda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions