Tampilkan postingan dengan label parsing. Tampilkan semua postingan
Tampilkan postingan dengan label parsing. Tampilkan semua postingan

Senin, 23 Mei 2016





           


     Hello to all, the past one week, I have been
reading some of the top blogs on the internet that write about AdSense.
I read so many comments which really needed attention. Unfortunately, I
cannot write to all this people who really seem disappointed or
frustrated as their attempt to follow instructions in a tutorial seem
to be a ‘’mess’’. This is why I decided to write this post. I believe
it will clear the doubts of so many and also help them improve their
earnings with AdSense.

The reason why you always get error is simply because some tags
according to W3Schools are considered invalid. Many people are still in
the process of updating to the new standards set by w3Schools. 

     W3Schools is a web developer information
website, with tutorials and references relating to web development
topics such as HTML, CSS, JavaScript, PHP, SQL, and JQuery. The site
provides a reference manual covering many aspects of web
programming.  It is necessary for every developer to be part of
this site so as to be aware of the recent updates in the world of
coding.

Let us take a sample of an AdSense code  for the
asynchronous  type.



The most common thing we will do is to parse the code in a converter to
obtain a code like this



   
                 
                 
 
Originally like
<!--HOME PAGE 1



<ins
class="adsbygoogle"


  
style="display:inline-block;width:728px;height:90px"


  
data-ad-client="ca-pub-xxxxxxx"


  
data-ad-slot="YYYYY"></ins>


<script>

(adsbygoogle = window.adsbygoogle ||
[]).push({});


</script>

It is good . We have  replaced   ‘’< ‘’with
<   and   ‘’> ‘’ with > very fast.

So why do I get   error when I want to save?

Response: Your code still contain an string not permitted in comments
‘’—‘’

To get rid of this , you will have to do a minification  and
proceed with code implementation of the ad code as follows

1.    Get code from your adsense account

2.    Paste code on HMTL editor such as
notepad,notepad++,dreamweaver, kompozer or just any



3.    Remove
the line highlighted in red. above,

4.    Paste the code to your converter

5.    Copy code

6.    Paste it in your desired position. You won’t get
an error message again. 

    Start earning peacefully

                                


Some common Errors and solutions

Error parsing XML, line 3719,
column 15:  Attribute name "async" associated with an element type
"script" must be followed by the = characte
r.

Solution                                                                                                                                                                       


replace ‘’sync’ ’ with the XML equivalent  async=async

Error parsing XML, line 3719,
column 15: Open quote is expected for attribute "{1}" associated with
an element type "async" (when you try to modify the async tag)


This means you wrote the second async tag without the  quotation .
See error one

Error parsing XML, line 3490,
column 9: The string "--" is not permitted within comment


Solution. Wipe out this line containing you ad title . For
example   

Still facing difficulties ? Leave a comment




-->

Read More..

Jumat, 13 Mei 2016

With the update of some XML syntax rules,elements and others  by W3 Schools, it is very common today to hear of parsing a code . This word is becoming very popular to those monetizing their content with AdSense. Let us get to talk a little about this.
For more about modifying asynchronous codes, read 
 How to Add Adsense Code into blogger HTML Without Parsing Error Message
What does it mean to parse a code?
The word parse according to techterms.com is used in computer science to refer to reading a program code.
The standard web language nowadays is HTML  and as  such, developers are trying to convert other languages to this standard. That is the basic explanation of parsing. There are several ways which this word can be explained depending on the context.    
Parsing any code will require a Aparser  which is a software component that takes input data in the form of text and builds a data structure giving a structural representation of the input, checking for correct syntax in the process(wikipedia).
what about Adsense code Parsers? 
The major thing i noticed about most  adsense parsers is that they
replace  ‘’< ‘’ with  <   and   ‘’> ‘’ with > which are two among the five 5 pre-defined entity references in XML.
  Will the adsense code work in my html code when parsed? 
Well, i noticed that on blogger plat forms, parsing the ad code does not make it ready for use in your blog. This leads us to a very similar term called Ad tag minification.
What is Ad tag Minification? 
     Minification is the process of compression code from the original size to the smallest size and does not affect to the operation of the code. It also invoves removing parts of a code that ar invalid.
To make things short, with the ad sense code, for you to implement it correctly on your blogger You need to minify the code and next parse the code.
So we will take an example  with a synchronous ad code.
Here are the steps we will take to remove implement it.
 

Proceed as follows using the minified code
With this were are done and your code is ready . You can now put it in the position you like on your blog.
Note that this was example is for the synchronous code.