Questions tagged as 'parser'

1
answer

How to replace the HTML content of a div using DOMElement of php

I'm trying this way libxml_use_internal_errors(true); //pegar o conteudo de um pagina web $doc = new DomDocument(); $doc->loadHTMLFile('http://www.astralsaudeambiental.com.br/'); $div = $doc->getElementById('sidebar'); $string_div = '';...
asked by 25.07.2014 / 21:52
1
answer

Syntactic Reader (Visual Studio 2013 Extension)

When doing the language syntax reading in a Visual Studio extension project I can already read the following: <span class="myclass"></span> It is relatively easy to manage read states InTag , AttributeNaming , Att...
asked by 21.06.2014 / 23:56
2
answers

How to perform an algebraic expression on a string in C [duplicate]

My program has the following purpose: Given a function, my program replaces the 'X (s)' of the function with any number. The code below exemplifies what was said. //funcao a ser trabalhada char funcao[150] = "(x^2)*5"; int tamanho = s...
asked by 25.09.2015 / 00:30
2
answers

Find a snippet of an HTML

I get a string , and it contains an HTML. Here is a table, and its columns: <td width="24%" valign="top" border="1" style=" BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT...
asked by 10.11.2014 / 15:31
1
answer

What is DOM Parser?

Reading about regular expression I saw a recurring term, DOM parser, and I had the doubts: What is DOM PARSER? How does it work? Does any language have?
asked by 25.01.2017 / 02:30
1
answer

Parsing columns of numbers from a CSV file in C

Hello, Good Night I have a simple .CSV file, containing only two columns, separated by a comma and the new line, as an example: 0.001,-9.623 0.098,2.540 1.000,-1.002 And you need to separate them preferably in two vectors, or in an array...
asked by 19.03.2018 / 02:23
1
answer

How is a scoping block identified in a language like Python?

How does a language identify a block where it does not use keys to open and close? function exemplo(){ // ... } I believe in the example above the parser create a scope block from the keys, but in a language like Python def exemplo():...
asked by 18.06.2016 / 01:24
2
answers

how to parse a json return with complex object

How do I parse a json return where I have optional fields such as phone, the user can have more than one such as residential, mobile and phone to message, in this case if the user has informed the phone it list if I have not informed it does n...
asked by 14.11.2016 / 18:30
2
answers

Use the number of characters obtained in a regular expression sentence in the string substitution

I'm doing a Markdown parser as part of a regular expression study, and I'd like to use the amount of characters in a stretch of the expression as a basis for string substitution, for example: # Titulo ## Titulo The first title will be added...
asked by 20.08.2015 / 19:38
1
answer

Copy HTML from a page display in a textview

I need a direction. What method do you use to "download" the html of a page (texts only) for example: link and displayed it in a textView?     
asked by 14.03.2018 / 04:46