Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8534651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:14:42+00:00 2026-06-11T10:14:42+00:00

Im trying to get some help with XML. I have found some good code

  • 0

Im trying to get some help with XML. I have found some good code examples online and it works for most of what i’m trying to get, but not for all. Any Help with this would be nice. I only get the combined data. I’m looking on how to get “ns0:NarrativeCreateDatetime” on the loop in one object and the “ns0:NarrativeText” in the an other object.

Thanks
Fernando

Part Of the xml File:

09/14/2012 07:49:23 – E911 Info – Class of Service: BUSN

for Each item As System.Xml.XmlElement In Narrative
        If Not item.InnerText = "" Then

            objNarrative = item.InnerText
            x += 1
        End If
    Next
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:14:43+00:00Added an answer on June 11, 2026 at 10:14 am
    For Each item As System.Xml.XmlElement In DispatchTime
            If Not item.InnerText = "" Then
                For Each UnitNumber As System.Xml.XmlElement In item.GetElementsByTagName("ns0:UnitNumber")
                    objUnitNumber = UnitNumber.InnerText
                Next
                For Each Dispatched As System.Xml.XmlElement In item.GetElementsByTagName("ns0:Dispatched")
                    objUnitDispatched = Dispatched.InnerText
                Next
                For Each Enroute As System.Xml.XmlElement In item.GetElementsByTagName("ns0:Enroute")
                    objUnitEnRoute = Enroute.InnerText
                Next
                For Each AtScene As System.Xml.XmlElement In item.GetElementsByTagName("ns0:AtScene")
                    objUnitAtScene = AtScene.InnerText
                Next
                For Each InService As System.Xml.XmlElement In item.GetElementsByTagName("ns0:InService")
                    objUnitInService = InService.InnerText
                Next
                ' Add Code to insert to DB
    
    
    
                objUnitNumber = ""
                objUnitDispatched = ""
                objUnitEnRoute = ""
                objUnitAtScene = ""
                objUnitInService = ""
            End If
        Next
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really have not worked much with XML and I would appreciate some help.
I was wondering if i could get some help. What i am trying to
Im trying to get some auto complete to work. I have this URL i
Just trying to get some rows out of a database and loop through but
Im trying to get some system information using WMI but the problem is when
I am trying to get my sltag value but I got some errors in
I am trying to get some words from xml and put them an the
I'm trying to get some basic ajax working on rails. I have a comon
I have some XML that I am trying to deserialize the xml below. <?xml
I'm trying to parse a xml document to get some data for my program.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.