User Profile

Collapse

Profile Sidebar

Collapse
simongh
simongh
Last Activity: Dec 3 '10, 01:20 PM
Joined: Jun 27 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ha! I missed that bit. That's entirely the problem. The namespace is declared on a self closing element, so is scoped to only that element. When the xmlreader encounters the namespace further down it throws a "namespace undeclared" exception. What you've got otherwise is invalid XML, which no xmlparser can read.

    Change your xml to below or move the namespace declaration to the myComponent element.

    Code:
    <?xml version="1.0"
    ...
    See more | Go to post

    Leave a comment:


  • simongh
    replied to What is wrong with this namespace
    The last too parameters need to be include the out keyword as they're passed by ref, not value. juts put out before the last 2 parameters:

    Code:
    myrefmethod(out p1 out p3)
    See more | Go to post

    Leave a comment:


  • Presumably in the example above the html document isn't what you used for real as it's incomplete.

    Declaring the namespace on an element other than the root, is perfectly valid xml, so that shouldn't cause any issue.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...