Skip to main content

Questions tagged [xml]

Questions on the use of Mathematica to import, modify, and export XML documents.

Filter by
Sorted by
Tagged with
2 votes
1 answer
124 views

Are there any undocumented or third-party packages or paclets for importing MusicXML? https://github.com/w3c/musicxml/releases
user5601's user avatar
  • 3,880
1 vote
2 answers
103 views

Here we have an XMLObject["Document"]: ...
Felix Kasza's user avatar
1 vote
1 answer
209 views

I am using the WolframAlpha command to automated solution sets of homework exercises. Here is an sample usage, although this can happen with many different examples:...
Aharon Naiman's user avatar
4 votes
1 answer
167 views

I'm trying to parse some data out of the HTML for a form. Here's a simple one ...
b3m2a1's user avatar
  • 48k
4 votes
1 answer
409 views

I am having trouble to transform XML data into a Mathematica Dataset of Associations. I want a dataset that follows the structure of the XML file with all its sublevels. Here is the example xml: ...
heartbeatz's user avatar
0 votes
0 answers
67 views

I'm trying to make a Form that outputs a few matrices, and I figured I'd use an XML-Template to format the output. Here is a minmal example of the problem. I'd like a Matrix output as in: ...
NumericPrime's user avatar
1 vote
2 answers
123 views

I try parse hub titles and links from this site: https://habr.com/en/hubs/, but code returns empty list. Can not understand why. ...
katifa sh's user avatar
4 votes
1 answer
126 views

I import a XML file, using: xmldatatest = Import["C:\\...\\...\\name.xml", {"XML", "XMLObject"}, "ReadDTD" -> False] ...
Michiel van Mens's user avatar
1 vote
2 answers
631 views

I am trying to write a function to extract both the data and the attribute data from an XMLElement in the same pass. I have followed the examples from Mathematica's Transforming XML tutorial and the ...
user74549's user avatar
  • 317
5 votes
1 answer
158 views

Prior to v12.1 Row was not handled well by MathML export: Now it is ok: ExportString[Row[{1}], "MathML"] ...
Kuba's user avatar
  • 139k
3 votes
1 answer
107 views

I do not see how to remove <annotation encoding='Mathematica' from generated MathML. Afaict it is not needed for a one way conversion and it often doubles the ...
Kuba's user avatar
  • 139k
1 vote
2 answers
143 views

I am struggling to convert a base64 string to a list of UnsignedInteger16 values. I have limited experience with mathematica, so please excuse me if this should be obvious. I read the base64 string ...
Richard Scott's user avatar
4 votes
1 answer
286 views

I'm exporting some plots from Mathematica into x3d for display on the web, and I'm having some trouble getting the plot mesh to display consistently. I believe this behaviour is ultimately a bug on ...
Emilio Pisanty's user avatar
0 votes
0 answers
126 views

Based on below command: ...
Inzo Babaria's user avatar
  • 1,533
2 votes
0 answers
84 views

I import a dataset from the internet like: data=Import["http://www.test.com", {"HTML", "XMLObject"}] The dataset looks like this: ...
Michiel van Mens's user avatar
5 votes
3 answers
419 views

I can't seem to find a way to convert between an XML string and RawJSON: ...
M.R.'s user avatar
  • 31.9k
1 vote
1 answer
79 views

I have the following expression ...
Skadi Grossberndt's user avatar
1 vote
1 answer
154 views

I need to import some xml information from many pages. I have list of this pages. Doing it in single thread is too long. But I can't access multiple pages from the same IP at the same time. So I need ...
VasilySH's user avatar
4 votes
3 answers
169 views

I need to parse some xml code. I need to extract some values withing pattern elements. I made an example of my trouble. Here is some complicated xml list: ...
VasilySH's user avatar
10 votes
2 answers
446 views

I'm interested in working with XML more conveniently and efficiently than I currently can. The standard XMLDocument/XMLElement ...
b3m2a1's user avatar
  • 48k
2 votes
1 answer
152 views

I scrape data from a public website about houses for rent. All pages have the same structure. But the pages can differ in the amount of information. Below I give two examples: page/house 1: ...
Michiel van Mens's user avatar
3 votes
1 answer
570 views

EDIT : Originally posted as an XML issue, file format was found to be actually JSON, yet the problem is essentially the same: Import worked in 11.2 but not in 11.3. As per Hans' comments, replicated ...
alancalvitti's user avatar
  • 15.3k
0 votes
0 answers
242 views

I have an xml file with the tag data from Stackexchange: https://archive.org/download/stackexchange/stackoverflow.com-Tags.7z After I unzip it I would like to import it to Mathematica to some ...
FreshLearner's user avatar
2 votes
2 answers
226 views

I have an XML file like this: ...
anderstood's user avatar
  • 14.6k
1 vote
1 answer
128 views

I have a file that, when imported as an "XMLObject", returns an XML object that possesses this general structure: (I've stripped the inconsequential junk wrapping ...
user170231's user avatar
  • 1,691
0 votes
1 answer
235 views

I would like to extract the time series from a XML link provided by the ECB. Unfortunately, I am not able to extract the data time series. May someone be able to help me please? I start to import the ...
Alexander Hempfing's user avatar
0 votes
1 answer
178 views

My code for parsing MathML to be readable in Mathematica: ToExpression @ ImportString @ ExportString[#, "XML"]& /@ Cases[ xml, XMLElement["math", _, _],∞ ] ...
MathProtein's user avatar
4 votes
1 answer
221 views

When I import url, there will show the folling message: "Cannot import data as Graph6 format" The codes as following: ...
zongxian's user avatar
  • 901
1 vote
1 answer
129 views

I want filter information from a .xml file, from elements that look like this: ...
zongxian's user avatar
  • 901
12 votes
3 answers
597 views

Is there already a markdown to XML parser implemented in Mathematica? I wrote a one for my pelican rewrite, but realized I should have asked here first. Mine is almost certainly faulty in a few major ...
b3m2a1's user avatar
  • 48k
1 vote
0 answers
128 views

I've been working on scraping an article from CNBC. The link is here I want to scrape the main body, and the code I have so far is this: ...
Vic Jongmin Youn's user avatar
0 votes
0 answers
314 views

I've wrote a program notebook to convert chrome bookmark html to new chrome bookmark html, and it can also be imported into IE favorites. One can test it in your own chrome bookmark html[need do ...
HyperGroups's user avatar
  • 8,669
3 votes
1 answer
660 views

Having a bit of trouble pulling a value out of a JSON Association here. I am scraping this website: http://www.msn.com/en-us/money/stockdetails/history/fi-126.1.BY.NYS I want to scrape the closing ...
Vic Jongmin Youn's user avatar
1 vote
0 answers
123 views

I'm having some trouble wrapping my head around how I would go about using two arguments in one function. In the first section of the code below, I have scraped some "tweets" on the Seeking Alpha ...
Vic Jongmin Youn's user avatar
1 vote
1 answer
128 views

I've been working with some web scraping and have run into a wall. The website I'm working with is this: https://seekingalpha.com/symbol/TWLO/stocktalks I am trying to scrape all of the "stock talks" ...
Vic Jongmin Youn's user avatar
2 votes
1 answer
634 views

I've run into a little question while trying to parse XML. This seems like a rather simple task, but for the life of me I cannot figure it out. I pull up the XML of the website using the following ...
Vic Jongmin Youn's user avatar
3 votes
1 answer
132 views

When exporting an XMLObject (using Export/ExportString), is there any way to include a ...
Szabolcs's user avatar
  • 239k
5 votes
1 answer
744 views

I'm working with some webscraping using Mathematica and have run into a question: is it possible to grab all the links on a webpage that scrolls down? The page I am trying to scrape is this: "http://...
Vic Jongmin Youn's user avatar
0 votes
2 answers
153 views

Please, consider an XML document containing these fields: ...
mitochondrial's user avatar
4 votes
1 answer
391 views

I am planning to write a package to read data which is saved in XML format that should follow some XML schema. As part of the reading I would like to do error checking, namely schema validation. So is ...
Ramiro Magno's user avatar
1 vote
2 answers
226 views

There are some built in rules in exporting that automatically create Void elements / self closing tags for some tags: ...
Kuba's user avatar
  • 139k
5 votes
1 answer
226 views

ExportString[Grid[{{a, b}}], "HTMLFragment"] ...
Kuba's user avatar
  • 139k
4 votes
1 answer
172 views

ImportString["<mtext> </mtext>", {"MathML", "XMLElement"} ] XMLElement["mtext",{},{}] while I'd expect: ...
Kuba's user avatar
  • 139k
10 votes
3 answers
234 views

What causes the following unexpected behavior? ...
hftf's user avatar
  • 959
1 vote
1 answer
286 views

I am getting the following error when trying to import XML: ...
user1496710's user avatar
5 votes
3 answers
484 views

How might I create a function that converts between FullForm and a XML structuce? Ultimately I'm ideally looking to use CSS and JS to edited the XML structure. ...
William's user avatar
  • 7,675
5 votes
1 answer
252 views

Setup Here's my mathML expression: mathML = ExportString[1/2, "MathML"] ...
Kuba's user avatar
  • 139k
2 votes
0 answers
161 views

...
HyperGroups's user avatar
  • 8,669
2 votes
0 answers
105 views

content of the html file is as follows: <p> 被尊称为&ldquo;高贵的&rdquo; </p> method1: ...
HyperGroups's user avatar
  • 8,669
0 votes
1 answer
395 views

I would like to extract from an XMLObject only the XMLElements with a specific tag. Inspired from the Mathematica help (section transforming XML, introduction, the example with the colours), I have ...
Bendesarts's user avatar
  • 1,129