Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Install in custom module on 5.2.0 (EndElementInstall in custom module on 5.2.0 (EndElement' is an invalid XmlNodeType) error
Previous
 
Next
New Post
12/16/2009 2:42 AM
 

Hi,

I want to install a module which works fine under 4.9.5 and I got following error when installing it on 5.2.0

DotNetNuke.Services.Exceptions.PageLoadException: 'EndElement' is an invalid XmlNodeType. Line 200, position 7. ---> System.Xml.XmlException: 'EndElement' is an invalid XmlNodeType. Line 200, position 7.at System.Xml.XmlReader.ReadStartElement(String name)at DotNetNuke.Entities.Modules.Definitions.ModuleDefinitionInfo.ReadModuleControls(XmlReader reader)at

The .dnn manifest looks ok to me.

Any ideas?

Thx

 

 

 
New Post
1/5/2010 2:43 PM
 

Hi ... were you able to get this resolved?  I'm running into the same issue while trying to upgrade to 5.1.4

 
New Post
1/5/2010 6:56 PM
 

Which module are you trying to install and what is its version?


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/5/2010 8:41 PM
 

Its a custom module that we built ...

An example of the The XML File that is being read
----------------------------------------------------------------------
<CurrentProgramInfo>
 <Title>The Last Little Big Horn</Title>
 <Duration>00:28:29</Duration>
 <ElapsedTime>00:22:08</ElapsedTime>
 <Author>Pastor Doug Batchelor</Author>
 <Copyright>Amazing Facts 2009, www.amazingfacts.org</Copyright>
 <FileName>afp56.wmv</FileName>
 <Description>Amazing Facts Presents</Description>
 <PlaylistID>2</PlaylistID>
</CurrentProgramInfo>

 

A snippet of the code

----------------------------------------------

Dim strXMLFile As String = Me.XMLSource
Dim objXMLTR As New XmlTextReader(strXMLFile)
Dim ProgramAttribute As String = Nothing
Dim FileName As String = Nothing
Dim blnGotMetaData As Boolean = False
Dim bNested As Boolean
Dim PlaylistID As Integer = 0

lblTitle.Text = ""
lblAuthor.Text = ""
lblDuration.Text = ""
lblCopyright.Text = ""
lblDescription.Text = ""
FileName = ""

'~~~ READ METHOD LOOPS THROUGH THE XML STREAM ~~~
Do While objXMLTR.Read
    If objXMLTR.NodeType = XmlNodeType.Element Then
        bNested = True
        ProgramAttribute = objXMLTR.Name

    ElseIf objXMLTR.NodeType = XmlNodeType.Text Or objXMLTR.NodeType = XmlNodeType.CDATA Then
        bNested = False

        Select Case UCase(ProgramAttribute)
            Case "TITLE"
lblTitle.Text = objXMLTR.Value & "<br>"
blnGotMetaData = True

If objXMLTR.Value.length < 12 Then
    blnGotMetaData = False
End If

            Case "AUTHOR"
lblAuthor.Text = objXMLTR.Value & "<br>"

            Case "DURATION"
lblDuration.Text = "Duration: " & objXMLTR.Value & "<br>"

            Case "ELAPSEDTIME"
lblElapsedTime.Text = "Elapsed Time: " & objXMLTR.Value & "<br>"

            Case "PLAYLISTID"
PlaylistID = CInt(objXMLTR.Value)

            Case "COPYRIGHT"
lblCopyright.Text = objXMLTR.Value & "<br>"

            Case "FILENAME"
FileName = Left(objXMLTR.Value, InStr(objXMLTR.Value, ".") - 1)
If (WeekdayName(Weekday(Today))) = "Friday" And (Hour(Now)) >= 18 Then
    pnlOffer.visible = False
ElseIf (WeekdayName(Weekday(Today))) = "Saturday" And (Hour(Now)) <= 19 Then
    pnlOffer.visible = False
Else
    Me.GetProgramOffer(FileName)
End If

            Case "DESCRIPTION"
lblDescription.Text = objXMLTR.Value & "<br>"
        End Select

        ProgramAttribute = ""
    End If
Loop

objXMLTR.Close()

 
New Post
1/5/2010 10:37 PM
 

It appears that we have two separate issues here with similar end errors being thrown while reading an xml file.

Foko -- Your error occurs during install of the module while the installer is reading the the <moduleControls><moduleControl> . . . </moduleControl></moduleControls> section of a version 5 dnn manifest. Please post the entire manifest file.

sybru -- From the code you posted, I assume that your error is occuring while your module is reading an xml data file, not during install of the module or during the upgrade of the site to DNN 5.01.04.  Did the module work properly before the upgrade? I would suggest setting a debug breakpoint at the start of your Do loop and step through the code to see where the error is thrown. I suspect that it may be while reading the <Copyright> node if the url shown in your sample is specified in an html anchor tag as the node's value should be placed in a ![CDATA [ . . . ]] section. If the anchor tag was added when you pasted the sample into your forum post, my suspicion is incorrect.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Install in custom module on 5.2.0 (EndElementInstall in custom module on 5.2.0 (EndElement' is an invalid XmlNodeType) error


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out