mit-crpg/openmc — pull request #231 by bhermanmit (2013-12-13 16:56:22+00:00)
Title: Fixed XML Reading Input on Multiple Levels of Tags

When using XML-DOM, when you ask for a list of nodes of a certain tagname, it will search through immediate children and recursively their children. This can cause errors in the way we want OpenMC input files to work. @nelsonag noticed that if `````` tagname is used in `````` as an element node and not an attribute, OpenMC will also see this node when searching for the cross_section directory file path. This is stated in issue #228 .

With this pull request a new function was implemented in FoX-DOM called ```getChildrenByTagName```. It is exactly the same as the DOM standard routine ```getElementsByTagName```, except that before pointing to another child element, it checks to make sure that the parent node is the node that we sent the routine. Therefore if you send a pointer that is on the hierarchical level of `````` in the following input file:

```xml

true

path

```

The only nodes that getChildrenByTagName will see is `````` and the second ``````. It will return *path* now instead of *true*.

Also in the PR, a flag was added for compiling FoX-DOM on BG/Q.