blob: f749c2f91516adb8bfd6735c6f2848fab2548be9 [file] [log] [blame]
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Class to represent an XML Document.
*/
'use strict';
/**
* Namespace for the Packet Trace Analyzer app.
*/
var pcap = pcap || {};
/**
* @constructor
*/
pcap.XmlDocument = function() {
};
/**
* Reads an XML document.
* @param {XMLDocument} xml The xml to read
* @return {boolean} True if reading succeeded; false otherwise.
*/
pcap.XmlDocument.prototype.read = function(xml) {
return true;
};
/**
* Generates an HTML representation of the Document and inserts
* it into the target element.
*
* @param {HTMLDivElement} targetEl The element to insert the generated HTML.
* @throws Error if unsuccessful.
*/
pcap.XmlDocument.prototype.display = function(targetEl) {
};