"}}}},"cartTimeout":{"template":{"name":"flyoutError","data":{"error":{"button":{"text":"Your Cart","url":"/gp/cart/view.html?ref_=nav_err_cart_timeout"},"title":"Oops!","paragraph":"Unable to retrieve your cart."}}}},"primeTimeout":{"template":{"name":"flyoutError","data":{"error":{"title":""}}}},"ewcTimeout":{"template":{"name":"flyoutError","data":{"error":{"button":{"text":"Your Cart","url":"/gp/cart/view.html?ref_=nav_err_ewc_timeout"},"title":"Oops!","paragraph":"There's a problem loading your cart right now."}}}},"errorWishlist":{"template":{"name":"flyoutError","data":{"error":{"button":{"text":"Your Wishlist","url":"/gp/registry/wishlist/?ref_=nav_err_wishlist"},"title":"Oops!","paragraph":"Unable to retrieve your wishlist"}}}},"emptyWishlist":{"template":{"name":"flyoutError","data":{"error":{"button":{"text":"Your Wishlist","url":"/gp/registry/wishlist/?ref_=nav_err_empty_wishlist"},"title":"Oops!","paragraph":"Your list is empty"}}}},"yourAccountContent":{"template":{"name":"flyoutError","data":{"error":{"button":{"text":"Your Account","url":"/gp/css/homepage.html?ref_=nav_err_youraccount"},"title":"Oops!","paragraph":"Unable to retrieve your account"}}}},"shopAllTimeout":{"template":{"name":"flyoutError","data":{"error":{"paragraph":"Unable to retrieve departments, please try again later"}}}},"kindleTimeout":{"template":{"name":"flyoutError","data":{"error":{"paragraph":"Unable to retrieve list, please try again later"}}}}}); });
window.$Nav && $Nav.when("util.templates").run("FlyoutErrorTemplate", function(templates) {
templates.add("flyoutError", "<# if(error.title) { #><#=error.title #><# } #><# if(error.paragraph) { #>
' +
'' + decodeURIComponent(encodedIframeContent) + ''+'div>'+''+'body>');
doc.close();
}
}
this.iframeload = function () {
var iframe = document.getElementById(iframeId);
iframe.style.display = '';
setTimeout(function () {
setIframeHeight(initialResizeCallback);
}, 20);
}
function getDocHeight(doc) {
var contentDiv = doc.getElementById("iframeContent");
var docHeight = 0;
if(contentDiv){
docHeight = Math.max(
contentDiv.scrollHeight,
contentDiv.offsetHeight,
contentDiv.clientHeight
);
}
return docHeight;
}
function setIframeHeight(resizeCallback) {
var iframeDoc, iframe = document.getElementById(iframeId);
iframeDoc = ((iframe.contentWindow && iframe.contentWindow.document) || iframe.contentDocument);
if (iframeDoc) {
var h = getDocHeight(iframeDoc);
if (h && h != 0) {
iframe.style.height = parseInt(h) + 'px';
if(typeof resizeCallback == "function") {
resizeCallback(iframeId);
}
} else if (nTries < MAX_TRIES) {
nTries++;
setTimeout(function () {
setIframeHeight(resizeCallback);
}, 50);
}
}
}
this.resizeIframe = function(resizeCallback) {
nTries = 0;
setIframeHeight(resizeCallback);
}
}
return DynamicIframe;
});
Enhance your purchase
If you are a Python programmer who wants to incorporate XML into your skill set, this is the book for you. Python has attracted a wide variety of developers, who use it either as glue to connect critical programming tasks together, or as a complete cross-platform application development language. Yet, because it is object-oriented and has powerful text manipulation abilities, Python is an ideal language for manipulating XML.
Python & XML gives you a solid foundation for using these two languages together. Loaded with practical examples, this new volume highlights common application tasks, so that you can learn by doing. The book starts with the basics then quickly progresses to complex topics, like transforming XML with XSLT, querying XML with XPath, and working with XML dialects and validation. It also explores the more advanced issues: using Python with SOAP and distributed web services, and using Python to create scalable streams between distributed applications (like databases and web servers).
The book provides effective practical applications, while referencing many of the tools involved in XML processing and Python, and highlights cross-platform issues along with tasks relevant to enterprise computing. You will find ample coverage of XML flow analysis and details on ways in which you can transport XML through your network.
Whether you are using Python as an application language, or as an administrative or middleware scripting language, you are sure to benefit from this book. If you want to use Python to manipulate XML, this is your guide.