xml-parsing

Get many webpages updation alerts. Systematic automated web scraping

陌路散爱 提交于 2019-12-06 15:31:12
I have used google sheet function IMPORTXML for scraping specific parts of webpages but It's not working properly with long xpath, not fluent, not smooth on tons of websites URL. I have also tried distill extension, excel scraping from web table but It is also not long term smooth solution. Please help to get notified on changes / updation of specific parts of tons of webpages. 来源: https://stackoverflow.com/questions/54444976/get-many-webpages-updation-alerts-systematic-automated-web-scraping

How to get element data from Soap Web Response? VB.NET

家住魔仙堡 提交于 2019-12-06 15:29:16
I'm trying to get data from a webservice, returning just one result, the number of a given item in stock. I'm successfully getting a result, but need to strip all the XML code from it to simple return the number, the XML being returned looks like: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <stockenquiryResponse xmlns="https://webservices.electrovision.co.uk"> <stockenquiryResult>**THE NUMBER I NEED**<

How do I parse XML using Nokogiri and split a node value?

半城伤御伤魂 提交于 2019-12-06 15:27:45
I'm using Nokogiri to parse XML. doc = Nokogiri::XML("http://www.enhancetv.com.au/tvguide/rss/melbournerss.php") I wasn't sure how to actually retrieve node values correctly. I'm after the title , link , and description nodes in particular that sit under the item parent nodes. <item> <title>Toasted TV - TEN - 07:00:00 - 21/12/2011</title> <link>http://www.enhancetv.com.au/tvguide/</link> <description>Join the team for the latest in gaming, sport, gadgets, pop culture, movies, music and other seriously fun stuff! Featuring a variety of your favourite cartoons.</description> </item> What I'd

jQuery XML parsing/manipulation IE8 error

删除回忆录丶 提交于 2019-12-06 15:21:24
I am loading an XML file using jQuery $.get. after loading the content, i can manipulate it and append the xml nodes to my own elements using .append(). this works on chrome and firefox, but not on IE8. example of xml file: <THEMES> <THEME id="city"> <ASSETS ui="game/city"> <ASSET package_id="title_screen" file="title_screen.swf" /> <ASSET package_id="backgrounds" file="cartoon_buildings.swf" /> <ASSET package_id="stand" file="stand.swf" /> </ASSETS> </THEME> </THEMES> I need to detach all of the THEME nodes and attach them to my own object. here is the essence of my code: var themes = $("

Is it absolutely mandatory to replace “>” by “>” in XML files? [duplicate]

♀尐吖头ヾ 提交于 2019-12-06 14:54:47
This question already has answers here : What characters do I need to escape in XML documents? (9 answers) Closed last year . I have a simple XML file <?xml version="1.0" encoding="utf-8" standalone="yes"?> <Document> <DATEN> <DTA_Coding_Line>0100011509856>249099000000000000004039555+ 010001456></DTA_Coding_Line> </DATEN> </Document> I have validated this file with several online XML validation tools and it does not create errors. Yet, in XML documentations I can read that I would have to escape the ">" character with > . Is this mandatory at all? When would I have to replace > with > ? If the

XML Parsing issue in Xcode?

白昼怎懂夜的黑 提交于 2019-12-06 14:47:54
问题 I am making a mac application, and I need it to parse a local xml file and display it into a tableView. For some reason, I get a blank row in my tableView, which makes no sense, as it has found characters that are in my xml. Here is my code: - (void)parserDidStartDocument:(NSXMLParser *)parser{ NSLog(@"found file and started parsing"); } - (void)parseXMLFileAtURL:(NSString *)URL { //you must then convert the path to a proper NSURL or it won't work NSURL *xmlURL = [NSURL URLWithString:URL]; //

Parsing : String to XML

守給你的承諾、 提交于 2019-12-06 14:38:25
my API is supposed to take a string and typecast it to XML format. But i am consistently getting this error : ParseError: mismatched tag: line 1, column 764 XML <?xml version="1.0" encoding="utf-8" ?> <MasterDetails IssuerId="5" Version="12.2"> <XMLRequest /> <BookingDetails Amount="768" Comment="Hotel Travel Purchase" CurrencyCode="INR" PurchaseType="Hotel" SupplierName="SomeHotel" CardAlias="C_ALIAS" ValidFor="-1D" CurrencyType="B" /> <CDFs> <CDF FieldName="Order Date" FieldValue="2015-01-01" /> </CDFs> <SomeTag> <Rule Action="A" Alias="MyAlias"> <Controls> <OPMCCControl Negate="False"/>

Get the values of attributes with namespace, using Nokogiri

狂风中的少年 提交于 2019-12-06 13:27:50
I'm parsing a document.xml file using Nokogiri, extracted from .docx file and need to get values of attributes with names, like " w:val ". This is a sample of the source XML: <w:document> <w:body> <w:p w:rsidR="004D5F21" w:rsidRPr="00820E0B" w:rsidRDefault="00301D39" pcut:cut="true"> <w:pPr> <w:jc w:val="center"/> </w:pPr> </w:body> </w:document> This is a sample of the code: require 'nokogiri' doc = Nokogiri::XML(File.open(path)) doc.search('//w:jc').each do |n| puts n['//w:val'] end There is nothing in the console, only empty lines. How can I get the values of the attributes? require

Regex VBA Match

喜欢而已 提交于 2019-12-06 13:24:55
问题 How can i get the value 81.16 in second msgbox? Regex get only numeric values from string Sub Tests() Const strTest As String = "<td align=""right"">116.83<span class=""up2""></span><br>81.16<span class=""dn2""></span></td>" RE6 strTest End Sub Function RE6(strData As String) As String Dim RE As Object, REMatches As Object Set RE = CreateObject("vbscript.regexp") With RE ' .MultiLine = True '.Global = False .Pattern = "\b[\d.]+\b" End With Set REMatches = RE.Execute(strData) MsgBox REMatches

Android: Write a xml on SD-Card

。_饼干妹妹 提交于 2019-12-06 12:30:18
I have a problem with my android-app. I want to save a Data-list in a xml and save it to SD-Card . Here the code fragment from my activity: Button btnActivity = (Button)findViewById(R.id.modul_save); btnActivity.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Handlerlist templist=new Handlerlist(); //default-constructor for handlerlist Parser_Writer temp_parser=new Parser_Writer(); //default-constructor for praser(writing) templist.add_modul(name, abk, 1, 0, "Hallo", room, 1, 2, 3, 1.3, true); //save input-data in the list temp_parser.write_xml(templist)