1. A method for processing a structural document to remove ambiguities from the document prior to processing, comprising the steps of: representing the structural document as a hierarchical tree structure; receiving translation rules defined by a user with reference to the hierarchical tree structure; automatically generating a modified hierarchical tree structure representing the structural document in accordance with the translation rules.