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
Post a Comment