Can JQuery or JavaScript be used to manipulate XML/DOM without a browser? -


i starting study web technologies integrate content, markup, layout, styling , behaviors of stuff personal use (not web developing now) , amazed power of jquery selectors , functions.

i have heard there ways use javascript "outside" browser, dom selection, manipulation, etc. wonder if jquery used way too.

so, is:

  • using programming/scripting language (i use python), access xml file , parse dom;
  • programmatically manipulate , modify dom javascript/jquery selectors , functions;
  • save results (possibly another) xml file.

if jquery syntax, check out pyquery:

from pyquery import pyquery  _ = pyquery('<body><p></p></body>') _("p").text("hello").css({'color': 'red'}) print _.html()   >>> <p style="color: red">hello</p> 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -