private bool Delete(ContentURI uri, EditHelper.ArgumentsEdits argumentsEdits, XElement root) { bool bIsDeleted = false; XNamespace y0 = XmlLinq.GetNamespaceForNode( root, argumentsEdits.URIToAdd.URINodeName); if (y0 != null) { bIsDeleted = XmlLinq.DeleteElementUsingURIToAdd(y0, root, argumentsEdits); //updategrams don't need the prefix/namespace argumentsEdits.URIToAdd.URINodeName = argumentsEdits.URIToAdd.URINodeName.Replace( Helpers.GeneralHelpers.NAMESPACE_DB_ABBREV_COLON, string.Empty); } else { bIsDeleted = XmlLinq.DeleteElementUsingURIToAdd(y0, root, argumentsEdits); } return(bIsDeleted); }
public bool DeleteJoinNode(EditHelper.ArgumentsEdits argumentsEdits, XElement root) { bool bIsDeleted = false; XNamespace y0 = XmlLinq.GetNamespaceForNode( root, argumentsEdits.URIToAdd.URINodeName); bIsDeleted = XmlLinq.DeleteElementUsingURIToAdd(y0, root, argumentsEdits); return(bIsDeleted); }