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 7176531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:31:38+00:00 2026-05-28T16:31:38+00:00

I have an XML file DemoFeed.XML and am trying to get it into a

  • 0

I have an XML file DemoFeed.XML and am trying to get it into a dataframe using the XML package and function xmlToDataFrame. However I am getting an error message:Error: XML content does not seem to be XML, nor to identify a file name

 <demo_feed>  
 <TimeStamp>20090610153000</TimeStamp>
 <XAU Bid="952.2" Ask="953.0"/>
 <XAG Bid="15.17" Ask="15.22"/>
 <XPT Bid="1266" Ask="1271"/>
 <XPD Bid="256" Ask="261"/>
 <EUR Bid="1.3993" Ask="1.3996"/>
 </demo_feed> 

I would be grateful for your help.

Kind regards,

Adam

  • 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-05-28T16:31:39+00:00Added an answer on May 28, 2026 at 4:31 pm

    Hansi’s comment is correct. This is one way to do it:

    > doc = xmlParse('demofeed.xml')
    > data.frame(t(xpathSApply(doc, 
          '/demo_feed/*[@Bid]', 
          function(x) c(name=xmlName(x), xmlAttrs(x)))))
    
      name    Bid    Ask
    1  XAU  952.2  953.0
    2  XAG  15.17  15.22
    3  XPT   1266   1271
    4  XPD    256    261
    5  EUR 1.3993 1.3996
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XML file loaded into a DOM document, I wish to iterate
I have xml file in server. I am parsing this xml using DOM(xml is
I have XML file (output of some application) like this: <data> <call function=get_user_data> <output>
I have xml/rdf file which I get from service. So, I need to transform
I have xml file like following for displaying ads using asp:AdRotator in asp <?xml
I have xml file and I need to convert the text that I get
I have XML file of object.I want to get instance of that object.But i
I have xml file with TAG like this: <Question>dzia&amp;#322;owa</Question> I'm reading this file using
What is the easiest way to convert xml to html? I have xml file
I have an XML file that starts like this: <Elements name=Entities xmlns=XS-GenerationToolElements> I'll have

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.