Unhandled System.NullReferenceException in XML Editor


hi all,

 

when editing xml document based on particular set of schemas, keep getting following in errors tab:

 

unhandled 'system.nullreferenceexception' in xml editor

object reference not set instance of object

 

things going fine until did inheritance in 1 of schemas in set (complextype has complexcontent extends complextype)...  seems i'm toast.

 

the problem occurs when open xml document based on schema.  opening other documents based on other schemas in set works fine...

 

any ideas?

 

thanks

james

sorry lack of details in original post...  here minimal example.  posted connect...

 

----------------------------------
steps reproduce:
- add xsd , xml project
- open project
- open xml document, produces exception

------------------------------------------
vvvvvvvvvvvvvvvv test.xsd vvvvvvvvvvvvvvvv

<?xml version="1.0" encoding="utf-8" ?>

<xstongue tiedchema xmlns:xs="http://www.w3.org/2001/xmlschema"
    targetnamespace="test"
    xmlns="test"
    elementformdefault="qualified">

  <xstongue tiedimpletype name="st1">
    <xs:restriction base="xstongue tiedtring">
      <xs:enumeration value="hi"/>
      <xs:enumeration value="there"/>
    </xs:restriction>
  </xstongue tiedimpletype>

  <xs:complextype name="ct1">
    <xstongue tiedimplecontent>
      <xs:extension base="xstongue tiedtring">
        <xs:attribute name="ct1a1" use="required" type="st1"/>
      </xs:extension>
    </xstongue tiedimplecontent>
  </xs:complextype>
 
  <xs:complextype name="ct2">
    <xs:complexcontent>
      <xs:extension base="ct1" >
       
      </xs:extension>
    </xs:complexcontent>
  </xs:complextype>

  <xs:element name="node" type="ct2"/>
 
</xstongue tiedchema>

^^^^^^^^^^^^^ test1.xsd ^^^^^^^^^^^^^^^^^^
------------------------------------------

------------------------------------------
vvvvvvvvvvvvvvvv t1.xml vvvvvvvvvvvvvvvv
<node xmlns="test">
</node>

^^^^^^^^^^^^^ t1.xsd ^^^^^^^^^^^^^^^^^^
------------------------------------------

 



Archived Forums V  >  Visual C# IDE



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'